Commit 7c17297a authored by iv's avatar iv

ERP5Workflow: fix typo in Workflow class's workflow_managed_permission attribute

parent 7cd6f656
...@@ -76,7 +76,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -76,7 +76,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
default_reference = '' default_reference = ''
workflow_managed_permission_list = () workflow_managed_permission = ()
managed_role = () managed_role = ()
erp5_permission_roles = {} # { permission: [role] or (role,) } erp5_permission_roles = {} # { permission: [role] or (role,) }
manager_bypass = 0 manager_bypass = 0
...@@ -774,8 +774,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -774,8 +774,8 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
# In most case, we should not synchronize acquired properties # In most case, we should not synchronize acquired properties
if prop_id not in ('uid', 'workflow_history', 'id', 'portal_type',): if prop_id not in ('uid', 'workflow_history', 'id', 'portal_type',):
if prop_id == 'permissions': if prop_id == 'permissions':
value = tuple(self.getProperty('workflow_managed_permission_list')) value = tuple(self.getProperty('workflow_managed_permission'))
prop_type = self.getPropertyType('workflow_managed_permission_list') prop_type = self.getPropertyType('workflow_managed_permission')
elif prop_id == 'initial_state': elif prop_id == 'initial_state':
if self.getSourceValue() is not None: if self.getSourceValue() is not None:
value = self.getSourceValue().getReference() value = self.getSourceValue().getReference()
......
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