Fix bug when SVN-committing on task without parent

This commit is contained in:
2016-11-10 15:14:25 +01:00
parent a169701793
commit 6628ce0b15

View File

@@ -183,7 +183,7 @@ class TaskManager(object):
register_activity(
user_id, msg,
'node', task['_id'],
'node', task['parent'] or task['_id'],
'node', task.get('parent', None) or task['_id'],
project_id=task['project'])