[fix] [bug] task deletion from project fixes #5470
This commit is contained in:
parent
723cd64249
commit
5cba40b74f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user