Commit bb7e5158 authored by Vincent Pelletier's avatar Vincent Pelletier

When given reference is an empty list, return an empty list immediately. This...

When given reference is an empty list, return an empty list immediately. This avoids triggering catalog's behaviour (it ignores parameters which have an empty list as value).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4b5da39
...@@ -69,7 +69,9 @@ ...@@ -69,7 +69,9 @@
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
\n \n
if reference is None:\n if reference == []:\n
return []\n
elif reference is None:\n
account_list = [context]\n account_list = [context]\n
else:\n else:\n
account_list = context.BankAccount_getReportInformationList(reference=reference, \n account_list = context.BankAccount_getReportInformationList(reference=reference, \n
......
479 481
\ No newline at end of file \ 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