From 910b67c1c129ed12cc0731058dab3c8a34c99f17 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 8 Nov 2011 09:12:28 +0000 Subject: [PATCH] fix a regression where on page load, when item was set, a previous query that would not match the item would not be reset --- static/js/pandora/URL.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index ab2b660e..7d5c5a36 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -147,12 +147,12 @@ pandora.URL = (function() { $(this).trigger('stop'); }); - if (!pandora.$ui.appPanel && state.item && find) { + if (!pandora.$ui.appPanel && state.item && pandora.user.ui.find) { // on page load, if item is set and there was a query, // we have to check if the item actually matches the query, // and otherwise reset find pandora.api.find({ - query: find, + query: pandora.user.ui.find, positions: [state.item], sort: [{key: 'id', operator: ''}] }, function(result) {