Merge pull request #18567 from scmmishra/task-fix-patch1

fix: task not updated issue
This commit is contained in:
sahil28297 2019-08-02 14:14:27 +05:30 committed by GitHub
commit 77313685da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ class Task(NestedSet):
def populate_depends_on(self):
if self.parent_task:
parent = frappe.get_cached_doc('Task', self.parent_task)
parent = frappe.get_doc('Task', self.parent_task)
if not self.name in [row.task for row in parent.depends_on]:
parent.append("depends_on", {
"doctype": "Task Depends On",