Commit 1ccfc689 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix the reversed condition.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4effc280
...@@ -2777,7 +2777,7 @@ class Base( CopyContainer, ...@@ -2777,7 +2777,7 @@ class Base( CopyContainer,
constraints = self.constraints constraints = self.constraints
if filt is not None: if filt is not None:
id_list = filt.get('id', None) id_list = filt.get('id', None)
if isinstance(id_list, (list, tuple)): if not isinstance(id_list, (list, tuple)):
id_list = [id_list] id_list = [id_list]
constraints = filter(lambda x:x.id in id_list, constraints) constraints = filter(lambda x:x.id in id_list, constraints)
return constraints return constraints
......
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