Commit cc8868b7 authored by iv's avatar iv

ERP5Workflow: remove acquisition_portal_type on before/after/... scripts categories

parent 65c6fe60
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</item> </item>
<item> <item>
<key> <string>acquisition_portal_type</string> </key> <key> <string>acquisition_portal_type</string> </key>
<value> <string>python: [\'Interaction\', \'Workflow Script\']</string> </value> <value> <string>python: []</string> </value>
</item> </item>
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</item> </item>
<item> <item>
<key> <string>acquisition_portal_type</string> </key> <key> <string>acquisition_portal_type</string> </key>
<value> <string>python: [\'Interaction\', \'Transition\', \'Workflow Script\']</string> </value> <value> <string>python: []</string> </value>
</item> </item>
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</item> </item>
<item> <item>
<key> <string>acquisition_portal_type</string> </key> <key> <string>acquisition_portal_type</string> </key>
<value> <string>python:[\'Interaction\', \'Workflow Script\']</string> </value> <value> <string>python:[]</string> </value>
</item> </item>
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</item> </item>
<item> <item>
<key> <string>acquisition_portal_type</string> </key> <key> <string>acquisition_portal_type</string> </key>
<value> <string>python: [\'Interaction\', \'Transition\', \'Workflow Script\']</string> </value> <value> <string>python: []</string> </value>
</item> </item>
<item> <item>
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
......
...@@ -10,8 +10,8 @@ if batch_mode == False and workflow_id_list is None: ...@@ -10,8 +10,8 @@ if batch_mode == False and workflow_id_list is None:
if workflow_list: if workflow_list:
for workflow in workflow_list: for workflow in workflow_list:
if workflow.get('listbox_selected'): if workflow.get('listbox_selected'):
selected_workflow_list.append(context.getObjectFromPath(workflow.get('listbox_key'))) selected_workflow_list.append(context.unrestrictedTraverse(workflow.get('listbox_key')))
if len(selected_workflow_list) == 0: if len(selected_workflow_list) == 0:
return context.REQUEST.RESPONSE.redirect( return context.REQUEST.RESPONSE.redirect(
'%s/WorkflowTool_viewWorkflowConversion?' '%s/WorkflowTool_viewWorkflowConversion?'
......
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