mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 11:25:09 +00:00
[fix] [bug] task deletion from project fixes #5470
This commit is contained in:
@@ -15,7 +15,7 @@ class Project(Document):
|
||||
|
||||
def onload(self):
|
||||
"""Load project tasks for quick view"""
|
||||
if not self.get("tasks"):
|
||||
if not self.get('__unsaved') and not self.get("tasks"):
|
||||
for task in self.get_tasks():
|
||||
self.append("tasks", {
|
||||
"title": task.subject,
|
||||
|
||||
Reference in New Issue
Block a user