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

This commit is contained in:
Rushabh Mehta 2019-05-04 22:39:31 +05:30 committed by Nabin Hait
parent 14425575b7
commit e12bedc0c2

View File

@ -358,7 +358,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 = []