Merge pull request #747 from normanjaeckel/Issue739_New

Save identifier in MotionSetStateView, fixed #739
This commit is contained in:
Oskar Hahn 2013-06-16 02:30:09 -07:00
commit c519c7444a

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)