Fixed multiple adding of 'include' field

This commit is contained in:
Pradeep Nayak 2018-10-19 00:41:08 +05:30
parent 0ceb19e204
commit ea85c80a5b

View File

@ -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(