Switch to non deprecated buildPermissionClause() for contact detail report
authorMatthew Wire <mjw@mjwconsult.co.uk>
Sun, 16 May 2021 13:30:18 +0000 (14:30 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Sun, 16 May 2021 13:30:27 +0000 (14:30 +0100)
CRM/Report/Form/Contact/Detail.php

index 47c98364f3eb49471041e535e2db7dc1b73f5694..48f267a8ffc1603b9c5815a792cb777c4b41c356 100644 (file)
@@ -820,15 +820,10 @@ HERESQL;
   }
 
   public function postProcess() {
-
     $this->beginPostProcess();
-
-    // get the acl clauses built before we assemble the query
-    $this->buildACLClause($this->_aliases['civicrm_contact']);
-
     $sql = $this->buildQuery(TRUE);
 
-    $rows = $graphRows = $this->_contactSelected = [];
+    $rows = $this->_contactSelected = [];
     $this->buildRows($sql, $rows);
     foreach ($rows as $key => $val) {
       $rows[$key]['contactID'] = $val['civicrm_contact_id'];