mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix creation bug
This commit is contained in:
parent
4f507f0cda
commit
761936a308
@ -325,7 +325,10 @@ class TasksManager:
|
||||
|
||||
# Checks to make sure some doofus didn't actually make the newly
|
||||
# created task a child of itself.
|
||||
if str(job_data["parent"]) == str(sch_id):
|
||||
if (
|
||||
str(job_data["parent"]) == str(sch_id)
|
||||
or job_data["interval_type"] != "reaction"
|
||||
):
|
||||
HelpersManagement.update_scheduled_task(sch_id, {"parent": None})
|
||||
|
||||
# Check to see if it's enabled and is not a chain reaction.
|
||||
|
Loading…
Reference in New Issue
Block a user