mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +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):
|
def onload(self):
|
||||||
"""Load project tasks for quick view"""
|
"""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():
|
for task in self.get_tasks():
|
||||||
self.append("tasks", {
|
self.append("tasks", {
|
||||||
"title": task.subject,
|
"title": task.subject,
|
||||||
|
|||||||
Reference in New Issue
Block a user