diff --git a/constituentsonly.php b/constituentsonly.php index cf3d251..fd2723a 100644 --- a/constituentsonly.php +++ b/constituentsonly.php @@ -151,6 +151,10 @@ function constituentsonly_civicrm_contactListQuery(&$query, $queryText, $context */ function constituentsonly_civicrm_selectWhereClause($entity, &$clauses) { if ($entity == 'Contact') { + $url = CRM_Utils_Array::value('q', $_GET); + if (strpos($url, 'civicrm/report') === FALSE) { + return; + } $clauses['do_not_trade'] = ' = 0'; } }