Commit 73a2cc6e authored by Bartek Górny's avatar Bartek Górny

Bugfix - interaction workflow tried to convert temporary documents through activities.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16838 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce306ace
......@@ -68,8 +68,14 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>state_change[\'object\'].uploadFile()\n
state_change[\'object\'].activate().convertToBaseFormat()\n
<value> <string>object = state_change[\'object\']\n
object.uploadFile()\n
\n
# do not activate conversion if the object is in portal_contributions\n
# because it will be gone from there in a second\n
# and activate would fail\n
if object.getParentValue().getPortalType() != \'Contribution Tool\':\n
object.activate().convertToBaseFormat()\n
</string> </value>
</item>
<item>
......@@ -119,8 +125,9 @@ state_change[\'object\'].activate().convertToBaseFormat()\n
<value>
<tuple>
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>object</string>
<string>_getattr_</string>
</tuple>
</value>
</item>
......
695
\ No newline at end of file
696
\ 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