Commit 613c07a7 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix hiding empty titled categories: it ws acting the other way around, and...

Fix hiding empty titled categories: it ws acting the other way around, and ignored the magic ['', ''] entry.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28389 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 493cd5f5
......@@ -290,7 +290,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [x for x in here.portal_categories.accounting_code.getCategoryChildTitleItemList(base=1,display_none_category=1,sort_id=\'title\') if x[1]]</string> </value>
<value> <string>python: [x for x in here.portal_categories.accounting_code.getCategoryChildTitleItemList(base=1,display_none_category=1,sort_id=\'title\') if x[0] or x[0] == x[1] == \'\']</string> </value>
</item>
</dictionary>
</pickle>
......
433
\ No newline at end of file
434
\ No newline at end of file
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [x for x in here.portal_categories.accounting_code.getCategoryChildTitleItemList(base=1,display_none_category=1,sort_id=\'title\') if x[1]]</string> </value>
<value> <string>python: [x for x in here.portal_categories.accounting_code.getCategoryChildTitleItemList(base=1,display_none_category=1,sort_id=\'title\') if x[0] or x[0] == x[1] == \'\']</string> </value>
</item>
</dictionary>
</pickle>
......
487
\ No newline at end of file
488
\ 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