Commit d37c333d authored by Jérome Perrin's avatar Jérome Perrin

BUG FIX when no portal_type is selected (portal_type_filter is None, not [])


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4206 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4bd6e880
...@@ -27,14 +27,14 @@ ...@@ -27,14 +27,14 @@
<dtml-in "portal_types.objectIds()" sort> <dtml-in "portal_types.objectIds()" sort>
<dtml-if expr="aq_parent.aq_parent.id in portal_workflow._chains_by_type.get(_['sequence-item'], [])"> <dtml-if expr="aq_parent.aq_parent.id in portal_workflow._chains_by_type.get(_['sequence-item'], [])">
<dtml-if portal_type_filter> <dtml-if portal_type_filter>
<dtml-let selected="_['sequence-item'] in portal_type_filter and 'selected' or ' '"> <dtml-let selected="_['sequence-item'] in (portal_type_filter or []) and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option> <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let> </dtml-let>
<dtml-else> <dtml-else>
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option> <option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
</dtml-if> </dtml-if>
<dtml-else> <dtml-else>
<dtml-if expr="_['sequence-item'] in portal_type_filter"> <dtml-if expr="_['sequence-item'] in (portal_type_filter or [])">
<option value="&dtml-sequence-item;" selected>(???) &dtml-sequence-item;</option> <option value="&dtml-sequence-item;" selected>(???) &dtml-sequence-item;</option>
</dtml-if> </dtml-if>
</dtml-if> </dtml-if>
......
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