Merge pull request #16466 from nabinhait/project-nonetype

fix(projects): None type handling while updating tasks
This commit is contained in:
Nabin Hait 2019-01-23 12:07:25 +05:30 committed by GitHub
commit 5b2922f76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,7 +162,7 @@ class Project(Document):
def is_row_updated(self, row, existing_task_data, fields):
if self.get("__islocal") or not existing_task_data: return True
d = existing_task_data.get(row.task_id)
d = existing_task_data.get(row.task_id, {})
for field in fields:
if row.get(field) != d.get(field):