ignore order if not given explicitly in query criteria
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3447 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
40f77b3c7f
commit
b3036a885f
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ class OrderItems(object):
|
|||
if 'party' in criteria:
|
||||
criteria['userName'] = self.getUid(criteria.pop('party'))
|
||||
if 'order' in criteria:
|
||||
criteria['order'] = self.getUid(criteria.pop('order'))
|
||||
order = criteria.pop('order')
|
||||
if order:
|
||||
criteria['order'] = self.getUid(order)
|
||||
if 'run' in criteria:
|
||||
criteria['runId'] = criteria.pop('run')
|
||||
return self.context.query(**criteria)
|
||||
|
|
Loading…
Add table
Reference in a new issue