CRM-12212
authorDonald A. Lobo <lobo@civicrm.org>
Tue, 26 Mar 2013 18:34:28 +0000 (11:34 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Tue, 26 Mar 2013 18:34:28 +0000 (11:34 -0700)
CRM/Contact/Selector.php

index 33c00616c786a12e402849aed3d730cf0ada81de..77376ad2b4967163a37f91c9b0e294a588656a50 100644 (file)
@@ -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);
     }
   }