Commit 3adf2ec6 authored by Jérome Perrin's avatar Jérome Perrin

selecting the empty item can be considered as equivalent from selecting nothing

here


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37515 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8cbca0e8
......@@ -62,7 +62,7 @@ method_id = portal_preferences.getPreference(\'preferred_category_child_item_lis
item_list = getattr(portal_categories.base_amount, method_id)(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\', base=1)\n
preferred_list = portal_preferences.getPreferredTradeBaseAmountList()\n
\n
if not preferred_list:\n
if not preferred_list and preferred_list != [\'\']:\n
return item_list\n
else:\n
return [item for item in item_list if item[1] in preferred_list]\n
......
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