From: Donald A. Lobo Date: Tue, 26 Mar 2013 18:34:28 +0000 (-0700) Subject: CRM-12212 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6aee9e36ead311605520d44eb479b48196cc6e03;p=civicrm-core.git CRM-12212 --- diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php index 33c00616c7..77376ad2b4 100644 --- a/CRM/Contact/Selector.php +++ b/CRM/Contact/Selector.php @@ -794,10 +794,9 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se if ($sortByCharacter == 'all') { //delete the alphabet key corresponding records in prevnext_cache CRM_Core_BAO_PrevNextCache::deleteItem(NULL, $cacheKeyCharacter, 'civicrm_contact'); + $cacheKeyCharacter = NULL; } - else { - $this->fillupPrevNextCache($sort, $cacheKeyCharacter); - } + $this->fillupPrevNextCache($sort, $cacheKeyCharacter); } }