Commit 78e51051 authored by Jérome Perrin's avatar Jérome Perrin

be more robust for broken item fields

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34130 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4554db70
......@@ -114,7 +114,8 @@ dQEAAAAA</string> </value>
<tal:block tal:condition="python: same_type(value, []) or same_type(value, ())">\n
<tal:block tal:repeat="item value">\n
<text:p tal:condition="not:item_list" tal:content="item"></text:p>\n
<text:p tal:condition="item_list" tal:content="python: [i[0] for i in item_list if i[1] == item][0]"></text:p>\n
<text:p tal:condition="item_list" tal:content="python: [i[0] for i in item_list if i[1] == item][0]"\n
tal:on-error="item"></text:p>\n
</tal:block>\n
</tal:block>\n
\n
......
229
\ No newline at end of file
230
\ No newline at end of file
......@@ -368,6 +368,7 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
tal:condition="not:item_list"/>\n
<text:p text:style-name=\'field-content\'\n
tal:content="python: [i[0] for i in item_list if i[1] == item][0]"\n
tal:on-error="item"\n
tal:condition="item_list" />\n
</tal:block>\n
</tal:block>\n
......
89
\ No newline at end of file
90
\ 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