Fixed multiple adding of 'include' field
This commit is contained in:
parent
0ceb19e204
commit
ea85c80a5b
@ -205,6 +205,7 @@ function constituentsonly_civicrm_searchColumns($objectName, &$headers, &$rows,
|
||||
function constituentsonly_civicrm_buildForm($formName, &$form) {
|
||||
if ('CRM_Contact_Form_Search_Advanced' == $formName
|
||||
&& !($form->getVar('_action') == CRM_Core_Action::DELETE)
|
||||
&& empty($form->_searchPane)
|
||||
) {
|
||||
$form->addElement('checkbox', 'ignore_constituent_search', ts('Include non-constituents'));
|
||||
CRM_Core_Region::instance('page-body')->add(array(
|
||||
|
Loading…
Reference in New Issue
Block a user