Merge pull request #747 from normanjaeckel/Issue739_New
Save identifier in MotionSetStateView, fixed #739
This commit is contained in:
commit
c519c7444a
@ -626,7 +626,7 @@ class MotionSetStateView(SingleObjectMixin, RedirectView):
|
|||||||
except WorkflowError, e: # TODO: Is a WorkflowError still possible here?
|
except WorkflowError, e: # TODO: Is a WorkflowError still possible here?
|
||||||
messages.error(request, e)
|
messages.error(request, e)
|
||||||
else:
|
else:
|
||||||
self.object.save(update_fields=['state'])
|
self.object.save(update_fields=['state', 'identifier'])
|
||||||
self.object.write_log(
|
self.object.write_log(
|
||||||
message_list=[ugettext_noop('State changed to '), self.object.state.name],
|
message_list=[ugettext_noop('State changed to '), self.object.state.name],
|
||||||
person=self.request.user)
|
person=self.request.user)
|
||||||
|
Loading…
Reference in New Issue
Block a user