Merge pull request #19594 from eileenmcnaughton/535m
[civicrm-core.git] / CRM / Contact / Selector.php
index 2296ddd2e43c8d7c262ea4055119131fbe5b206f..17a1155d0fdb481ef48bb28bec1bf7c0718623b7 100644 (file)
@@ -227,8 +227,6 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
       $displayRelationshipType,
       $operator
     );
-
-    $this->_options = &$this->_query->_options;
   }
 
   /**
@@ -1046,7 +1044,7 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
     try {
       Civi::service('prevnext')->fillWithSql($cacheKey, $sql);
     }
-    catch (CRM_Core_Exception $e) {
+    catch (\Exception $e) {
       if ($coreSearch) {
         // in the case of error, try rebuilding cache using full sql which is used for search selector display
         // this fixes the bugs reported in CRM-13996 & CRM-14438