fix: Task Depends on not removed from Gantt chart (#28309)

Co-authored-by: conncampbell <conncampbell@conzu.ca>
This commit is contained in:
Conn Campbell 2022-01-09 21:58:10 -07:00 committed by GitHub
parent 5b67dbf8d0
commit 31123436fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ class Task(NestedSet):
frappe.throw(_("Completed On cannot be greater than Today"))
def update_depends_on(self):
depends_on_tasks = self.depends_on_tasks or ""
depends_on_tasks = ""
for d in self.depends_on:
if d.task and d.task not in depends_on_tasks:
depends_on_tasks += d.task + ","