Save identifier in MotionSetStateView, fixed #739

This commit is contained in:
Norman Jäckel 2013-06-16 00:48:04 +02:00
parent 69f7e22320
commit 31547f8e1a

View File

@ -626,7 +626,7 @@ class MotionSetStateView(SingleObjectMixin, RedirectView):
except WorkflowError, e: # TODO: Is a WorkflowError still possible here?
messages.error(request, e)
else:
self.object.save(update_fields=['state'])
self.object.save(update_fields=['state', 'identifier'])
self.object.write_log(
message_list=[ugettext_noop('State changed to '), self.object.state.name],
person=self.request.user)