Commit 1953caeb authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Core.Predicate.buildSQLQuery: Fix accessor name.

parent 2373a549
......@@ -223,7 +223,7 @@ class Predicate(XMLObject):
catalog_kw.update(kw) # query_table, REQUEST, ignore_empty_string, **kw
criterion_list = self.getCriterionList()
# BBB: accessor is not present on old Predicate property sheet.
if criterion_list or getattr(self, 'isEmptyPredicateValid', lambda: True)():
if criterion_list or getattr(self, 'isEmptyCriterionValid', lambda: True)():
for criterion in criterion_list:
p = criterion.property
if criterion.min:
......
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