Commit c080221c authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_base: Avoid calling non-workflow scripts on a workflow context.

parent 24d4f124
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"""\n """\n
document = state_change[\'object\']\n document = state_change[\'object\']\n
contributor_list = document.getContributorValueList()\n contributor_list = document.getContributorValueList()\n
person = context.ERP5Site_getAuthenticatedMemberPersonValue()\n person = document.ERP5Site_getAuthenticatedMemberPersonValue()\n
if person is not None and person not in contributor_list:\n if person is not None and person not in contributor_list:\n
# a real ERP5 Person object does exist\n # a real ERP5 Person object does exist\n
contributor_list.append(person)\n contributor_list.append(person)\n
......
1061 1062
\ No newline at end of file \ No newline at end of file
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