fix: unlink task rather than deleting it (#17486)
This commit is contained in:
committed by
Nabin Hait
parent
02d28c5908
commit
c068b6a885
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user