Skip to content

Commit

Permalink
Fix not operator support of cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed May 19, 2016
1 parent 61f68ec commit 1986237
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Products/PluginIndexes/common/UnIndex.py
Expand Up @@ -359,7 +359,7 @@ def getRequestCacheKey(self, record, resultset=None):
params.append(('operator', operator))

# not / exclude operator
not_value = getattr(self, 'not', None)
not_value = record.get('not', None)
if not_value is not None:
not_value = frozenset(not_value)
params.append(('not', not_value))
Expand All @@ -380,7 +380,6 @@ def getRequestCacheKey(self, record, resultset=None):
# unique index identifier
iid = '_%s_%s_%s' % (self.__class__.__name__,
self.id, self.getCounter())

return (iid, rid)

def _apply_index(self, request, resultset=None):
Expand Down

0 comments on commit 1986237

Please sign in to comment.