fix workflow.store() in cron context (fix #3381)
This commit is contained in:
parent
45915c0ebf
commit
fbf7f3c47d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue