[fix] [bug] task deletion from project fixes #5470

This commit is contained in:
Rushabh Mehta 2016-06-25 18:44:54 +05:30
parent 723cd64249
commit 5cba40b74f

View File

@ -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,