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

only display portal types chained with this interaction workflow in the `Filter` field


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4031 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c98df567
...@@ -25,12 +25,18 @@ ...@@ -25,12 +25,18 @@
<select name="portal_type_filter:list" multiple size="5"> <select name="portal_type_filter:list" multiple size="5">
<option value="None">(None)</option> <option value="None">(None)</option>
<dtml-in "portal_types.objectIds()" sort> <dtml-in "portal_types.objectIds()" sort>
<dtml-if portal_type_filter> <dtml-if expr="aq_parent.aq_parent.id in portal_workflow._chains_by_type.get(_['sequence-item'], [])">
<dtml-let selected="_['sequence-item'] in portal_type_filter and 'selected' or ' '"> <dtml-if portal_type_filter>
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option> <dtml-let selected="_['sequence-item'] in portal_type_filter and 'selected' or ' '">
</dtml-let> <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
<dtml-else> </dtml-let>
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option> <dtml-else>
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
</dtml-if>
<dtml-else>
<dtml-if expr="_['sequence-item'] in portal_type_filter">
<option value="&dtml-sequence-item;" selected>(???) &dtml-sequence-item;</option>
</dtml-if>
</dtml-if> </dtml-if>
</dtml-in> </dtml-in>
</select> </select>
......
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