Skip to content

Commit

Permalink
Fix if cached result is single integer value convert it to IISet
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed May 20, 2016
1 parent 1b9bd5f commit f8eab73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Products/PluginIndexes/common/UnIndex.py
Expand Up @@ -455,11 +455,13 @@ def _apply_index(self, request, resultset=None):
cached = r

if cached is not None:
if isinstance(cached, int):
cached = IISet((cached, ))

if not_parm:
not_parm = map(self._convert, not_parm)
exclude = self._apply_not(not_parm, resultset)
r = difference(cached, exclude)
return r, (self.id,)
cached = difference(cached, exclude)

return cached, (self.id,)

Expand Down

0 comments on commit f8eab73

Please sign in to comment.