From ad3e54997ae8ca0ab8cc5db808cd912a129709e4 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 22 May 2012 16:24:07 +0000 Subject: [PATCH] fix a bug in pandora.getFindState --- static/js/pandora/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/utils.js b/static/js/pandora/utils.js index fc753cecd..aeb74f7e4 100644 --- a/static/js/pandora/utils.js +++ b/static/js/pandora/utils.js @@ -1245,8 +1245,8 @@ pandora.unloadWindow = function() { return filter.index > -1; }).length; // indices of non-advanced find queries - indices = find.conditions.map(function(condition) { - return oneCondition(find.conditions, condition.key, '='); + indices = pandora.site.findKeys.map(function(findKey) { + return oneCondition(find.conditions, findKey.id, '='); }).filter(function(index) { return index > -1; });