fix: unlink task rather than deleting it (#17486)

This commit is contained in:
Rushabh Mehta
2019-05-04 22:39:00 +05:30
committed by Nabin Hait
parent 02d28c5908
commit c068b6a885

View File

@@ -318,7 +318,8 @@ class Project(Document):
if not self.get('deleted_task_list'): return
for d in self.get('deleted_task_list'):
frappe.delete_doc("Task", d)
# unlink project
frappe.db.set_value('Task', d, 'project', '')
self.deleted_task_list = []