Added 'Include non-constituents in this search' on Advance search
This commit is contained in:
@ -49,6 +49,11 @@ class CRM_ConstituentsOnly_BAO_Query extends CRM_Contact_BAO_Query_Interface {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($query->_paramLookup['ignore_constituent_search'])) {
|
||||
$query->_qill[0][] = ts("Include non-constituents in this search");
|
||||
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,
|
||||
|
Reference in New Issue
Block a user