From 34298827ce2f3a3fc79d3024927590cc9e49c076 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 5 May 2014 09:13:07 -0700 Subject: [PATCH] CRM-14459 change use of separator in form to be explicit --- tools/extensions/org.civicrm.search.basic/Basic.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/extensions/org.civicrm.search.basic/Basic.php b/tools/extensions/org.civicrm.search.basic/Basic.php index c567107a27..6f451d1a00 100644 --- a/tools/extensions/org.civicrm.search.basic/Basic.php +++ b/tools/extensions/org.civicrm.search.basic/Basic.php @@ -96,7 +96,11 @@ class org_civicrm_search_basic extends CRM_Contact_Form_Search_Custom_Baseimplem } function buildForm(&$form) { - $contactTypes = array('' => ts('- any contact type -')) + CRM_Contact_BAO_ContactType::getSelectElements(); + + //@todo FIXME - using the CRM_Core_DAO::VALUE_SEPARATOR creates invalid html - if you can find the form + // this is loaded onto then replace with something like '__' & test + $separator = CRM_Core_DAO::VALUE_SEPARATOR; + $contactTypes = array('' => ts('- any contact type -')) + CRM_Contact_BAO_ContactType::getSelectElements(FALSE, TRUE, $separator); $form->add('select', 'contact_type', ts('Find...'), $contactTypes); // add select for groups -- 2.25.1