Commit d229e95d authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: default value of identity parameter is None in method setCriterion,...

Bug fix: default value of identity parameter is None in method setCriterion, so, use this value for testing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2641 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ee95f9c7
...@@ -198,7 +198,7 @@ identify a bank account.""" ...@@ -198,7 +198,7 @@ identify a bank account."""
if not hasattr(aq_base(self), '_identity_criterion'): if not hasattr(aq_base(self), '_identity_criterion'):
self._identity_criterion = {} self._identity_criterion = {}
self._range_criterion = {} self._range_criterion = {}
if identity != [] : if identity != None :
self._identity_criterion[property] = identity self._identity_criterion[property] = identity
if min != '' or max != '' : if min != '' or max != '' :
self._range_criterion[property] = (min, max) self._range_criterion[property] = (min, max)
......
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