From 0f5d162681f1438fe5963877b0b69fff9bd317c0 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 20 Jun 2013 16:16:00 -0700 Subject: [PATCH] Repopulate prev/next cache when changing search views CRM-12840 --- CRM/Contact/Selector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php index 77376ad2b4..31d1aa2fb1 100644 --- a/CRM/Contact/Selector.php +++ b/CRM/Contact/Selector.php @@ -786,7 +786,7 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se //for text field pagination selection save $countRow = CRM_Core_BAO_PrevNextCache::getCount("%civicrm search {$cacheKey}%", NULL, "entity_table = 'civicrm_contact'", "LIKE"); - if (!$crmPID && $countRow == 0 && !$sortByCharacter) { + if ((!$crmPID || $countRow == 0) && !$sortByCharacter) { $this->fillupPrevNextCache($sort); } elseif ($sortByCharacter) { -- 2.25.1