Apply on Contact search only for now
This commit is contained in:
parent
9eba3efa5e
commit
af531fbd4c
@ -44,6 +44,11 @@ class CRM_ConstituentsOnly_BAO_Query extends CRM_Contact_BAO_Query_Interface {
|
||||
return;
|
||||
}
|
||||
|
||||
$url = CRM_Utils_Array::value('q', $_GET);
|
||||
if (strpos($url, 'civicrm/contact/') === FALSE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (CRM_Utils_Array::value('civicrm_contact', $query->_tables) && empty($query->_paramLookup['do_not_trade'])) {
|
||||
$query->_where[0][] = "
|
||||
IF (contact_a.do_not_trade = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user