mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'bugfix/childschedule' into 'dev'
Fix child schedule failing to load after del parent See merge request crafty-controller/crafty-4!753
This commit is contained in:
commit
5bc1d74d13
@ -6,6 +6,7 @@
|
|||||||
TBD
|
TBD
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
- Reset query arguments on login if `?next` is not available ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/750))
|
- Reset query arguments on login if `?next` is not available ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/750))
|
||||||
|
- Fix child schedule failing to load after del parent ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/753))
|
||||||
### Tweaks
|
### Tweaks
|
||||||
- Add link to go back to dashboard on error page ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/743))
|
- Add link to go back to dashboard on error page ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/743))
|
||||||
- Set audit logging to logfile instead of DB ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/751))
|
- Set audit logging to logfile instead of DB ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/751))
|
||||||
|
@ -1237,6 +1237,8 @@ class PanelHandler(BaseHandler):
|
|||||||
page_data["schedule"]["interval_type"] = schedule.interval_type
|
page_data["schedule"]["interval_type"] = schedule.interval_type
|
||||||
if schedule.interval_type == "reaction":
|
if schedule.interval_type == "reaction":
|
||||||
difficulty = "reaction"
|
difficulty = "reaction"
|
||||||
|
page_data["parent"] = None
|
||||||
|
if schedule.parent:
|
||||||
page_data["parent"] = self.controller.management.get_scheduled_task(
|
page_data["parent"] = self.controller.management.get_scheduled_task(
|
||||||
schedule.parent
|
schedule.parent
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user