fix workflow.store() in cron context (fix #3381)

This commit is contained in:
Thomas NOËL 2013-07-26 16:18:57 +02:00
parent 45915c0ebf
commit fbf7f3c47d
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class Workflow(StorableObject):
def store(self):
self.last_modification_time = time.localtime()
if get_request().user:
if get_request() and get_request().user:
self.last_modification_user_id = get_request().user.id
else:
self.last_modification_user_id = None