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

don't fail if an item is not in the item list for a field

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18000 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0677580c
......@@ -84,6 +84,7 @@
tal:content="python: str(item)"\n
tal:condition="not:item_list"/>\n
<para style="TableStandard"\n
tal:on-error="string: ${value} (???)"\n
tal:content="python: [i[0] for i in item_list if i[1] == item][0]"\n
tal:condition="item_list" />\n
</tal:block>\n
......@@ -93,6 +94,7 @@
tal:content="python: str(value)"\n
tal:condition="not:item_list" />\n
<para style="TableStandard"\n
tal:on-error="string: ${value} (???)"\n
tal:content="python: [i[0].replace(\'&amp;nbsp;\', \'\') for i in item_list if i[1] == value][0]"\n
tal:condition="item_list" />\n
</tal:block>\n
......
55
\ No newline at end of file
56
\ 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