From 613c07a7d1ee3a7b75c7106e83c6681f44984c2c Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 14 Aug 2009 13:51:21 +0000 Subject: [PATCH] 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 --- .../CheckDeposit_view/my_destination_section.xml | 2 +- bt5/erp5_banking_check/bt/revision | 2 +- .../AccountingCancellationLine_view/my_destination_section.xml | 2 +- bt5/erp5_banking_core/bt/revision | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_view/my_destination_section.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_view/my_destination_section.xml index b67764416c..759a4ea101 100644 --- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_view/my_destination_section.xml +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_view/my_destination_section.xml @@ -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> diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision index af40ff6b88..1fde7522a7 100644 --- a/bt5/erp5_banking_check/bt/revision +++ b/bt5/erp5_banking_check/bt/revision @@ -1 +1 @@ -433 \ No newline at end of file +434 \ No newline at end of file diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_destination_section.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_destination_section.xml index af3d2c4ac0..b2b37dfa94 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_destination_section.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/AccountingCancellationLine_view/my_destination_section.xml @@ -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> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 34c3a209c7..8fc2b18859 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -487 \ No newline at end of file +488 \ No newline at end of file -- 2.30.9