#4189 (Cannot open SessionsByDay from WorkedHours)
80 · by Luc Saffre · in Developers · assigned to Sharif Mehedi
Résumé
Concepts sous-jacents
Commentaires
- 5 ans, 4 mois ago by Luc Saffre in reply to Sharif Mehedi about #4189 (Cannot open SessionsByDay from WorkedHours) : The if isinstance(model, type) is needed because model can be None. And a class object is an instance of type.
- 5 ans, 4 mois ago by Sharif Mehedi about #4189 (Cannot open SessionsByDay from WorkedHours) : After looking into the python code for more than an hour, I tried to calm down and think what was going on. And was absentmindedly clicking on things and discovered that this issue appears only when the record_id = 0 and found out that there's an if statement in react as such if (status.record_id) {...
- 5 ans, 4 mois ago by Sharif Mehedi about #4189 (Cannot open SessionsByDay from WorkedHours) (1 reply) : As I started to explore Actor.detail_link, I discovered this: gitlab.com/lino-framework/lino/-/blob/master/lino/core/actors.py#L759, line#759 the if conditional can never be True, because, 'model' cannot be an instance and also a class at the same time. So, this block of code is never used.
- 5 ans, 4 mois ago by Luc Saffre about #4189 (Cannot open SessionsByDay from WorkedHours) : In the 127.0.0.1:8000/#/api/working/WorkedHours/ table (either from withing the dashboard or when it is in own window), when I click on the date of a day (column "Description", internal name "detail_linik"), then it just repoens the same table again. The link says javascript:window.App.runAction({ "...