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

trade: fix a wrong proxy listbox usage in "Trade Model Lines" listbox

Listbox supports setting '' (empty string) as an URL column to disable
the link, but None was never really supported, even though it worked in
the old UI.
When setting using the "key | value" form of formulator, if value is
empty, it's not None but an empty string. This is also what we test in
portal_tests/listbox_zuite/testUrlColumns
parent b9beb439
Pipeline #9714 failed with stage
in 0 seconds
......@@ -201,7 +201,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(x[0], None) for x in field.get_orig_value(\'columns\')]</string> </value>
<value> <string>python:[(x[0], \'\') for x in field.get_orig_value(\'columns\')]</string> </value>
</item>
</dictionary>
</pickle>
......
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