Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#116)

* pick fix from #79 to fix #114
  • Loading branch information
agitator authored Jan 29, 2021
1 parent 357bb21 commit 91e7826
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ Changelog
5.3 (unreleased)
----------------

- Add support for Python 3.9.
- Fix case where multiple indexes with similar name seperated by ``_`` were interpreted as options
(`#78 <https://github.com/zopefoundation/Products.ZCatalog/issues/78>`_).

- Add support for Python 3.9.

5.2 (2020-10-09)
----------------
Expand Down
3 changes: 1 addition & 2 deletions src/Products/ZCatalog/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def __init__(self, request, iid, options=(), operators=('or', 'and'),

for field in request.keys():
if field.startswith(iid + '_'):
iid_tmp, op = field.split('_')

op = field[len(iid) + 1:]
self.set(op, request[field])

self.keys = keys
Expand Down

0 comments on commit 91e7826

Please sign in to comment.