Commit 9ca0ead2 authored by Sebastien Robin's avatar Sebastien Robin

do not clean the error_message


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2016 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 337f0cc5
...@@ -75,6 +75,7 @@ class ERP5PropertyManager(PropertyManager): ...@@ -75,6 +75,7 @@ class ERP5PropertyManager(PropertyManager):
manage_propertiesForm=DTMLFile('dtml/properties', globals(), manage_propertiesForm=DTMLFile('dtml/properties', globals(),
property_extensible_schema__=1) property_extensible_schema__=1)
def _updateProperty(self, id, value): def _updateProperty(self, id, value):
# Update the value of an existing property. If value # Update the value of an existing property. If value
# is a string, an attempt will be made to convert # is a string, an attempt will be made to convert
...@@ -610,10 +611,10 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition): ...@@ -610,10 +611,10 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
tool = aq_parent(aq_inner(self)) tool = aq_parent(aq_inner(self))
tool.setStatusOf(self.id, ob, status) tool.setStatusOf(self.id, ob, status)
# Make sure that the error message is empty. # Make sure that the error message is empty. # Why ?
sci = StateChangeInfo( #sci = StateChangeInfo(
ob, self, status, tdef, old_sdef, new_sdef, kwargs) # ob, self, status, tdef, old_sdef, new_sdef, kwargs)
sci.setWorkflowVariable(ob, error_message = '') #sci.setWorkflowVariable(ob, error_message = '')
# Update role to permission assignments. # Update role to permission assignments.
self.updateRoleMappingsFor(ob) self.updateRoleMappingsFor(ob)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment