CRM-15280 - Advanced Search not working for deleted Contacts
authoratif-shaikh <shaikh388@gmail.com>
Mon, 15 Sep 2014 08:54:10 +0000 (14:24 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Mon, 15 Sep 2014 08:54:10 +0000 (14:24 +0530)
https://issues.civicrm.org/jira/browse/CRM-15280

CRM/Contact/BAO/Query.php
CRM/Contact/Selector.php

index ca8f7693e13e375839c7afa5b717d490e9c7ced2..aa0ecfc03e3353f479362d00112f653642bb9c38 100644 (file)
@@ -4654,7 +4654,8 @@ civicrm_relationship.is_permission_a_b = 0
    */
   function getCachedContacts($cacheKey, $offset, $rowCount, $includeContactIds) {
     $this->_includeContactIds = $includeContactIds;
-    list($select, $from, $where) = $this->query();
+    $onlyDeleted = in_array(array('deleted_contacts', '=', '1', '0', '0'), $this->_params);
+    list($select, $from, $where) = $this->query(FALSE, FALSE, FALSE, $onlyDeleted);
     $from = " FROM civicrm_prevnext_cache pnc INNER JOIN civicrm_contact contact_a ON contact_a.id = pnc.entity_id1 AND pnc.cacheKey = '$cacheKey' " . substr($from, 31);
     $order = " ORDER BY pnc.id";
     $groupBy = " GROUP BY contact_a.id";
index 7d78e694598f1c8c1010caa56d71d38afd90a365..fd1185a5f866dd8def3753a1bd2815b74d8cf480 100644 (file)
@@ -888,6 +888,7 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
             'name' => ts('View'),
             'url' => 'civicrm/contact/view',
             'qs' => 'reset=1&cid=%%id%%',
+            'class' => 'no-popup',
             'title' => ts('View Contact Details'),
           ),
           array(