From c5de80f13424ea6b1aff86c1986ee12871897b22 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 2 May 2016 19:24:12 -0400 Subject: [PATCH] CRM-18154 - Fix checkboxes on profile field form --- CRM/UF/Form/Field.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/CRM/UF/Form/Field.php b/CRM/UF/Form/Field.php index 72380b33e1..4e2a27168e 100644 --- a/CRM/UF/Form/Field.php +++ b/CRM/UF/Form/Field.php @@ -433,8 +433,8 @@ class CRM_UF_Form_Field extends CRM_Core_Form { //CRM-4363 $js = array('onChange' => "mixProfile();"); // should the field appear in selectors (as a column)? - $this->add('checkbox', 'in_selector', ts('Results Column?'), NULL, NULL, $js); - $this->add('checkbox', 'is_searchable', ts('Searchable?'), NULL, NULL, $js); + $this->add('advcheckbox', 'in_selector', ts('Results Column?'), NULL, NULL, $js); + $this->add('advcheckbox', 'is_searchable', ts('Searchable?'), NULL, NULL, $js); $attributes = CRM_Core_DAO::getAttribute('CRM_Core_DAO_UFField'); @@ -445,14 +445,11 @@ class CRM_UF_Form_Field extends CRM_Core_Form { $this->add('textarea', 'help_pre', ts('Field Pre Help'), $attributes['help_pre']); $this->add('textarea', 'help_post', ts('Field Post Help'), $attributes['help_post']); - $this->add('checkbox', 'is_required', ts('Required?')); + $this->add('advcheckbox', 'is_required', ts('Required?')); - $this->add('checkbox', 'is_multi_summary', ts('Include in multi-record listing?')); - $this->add('checkbox', 'is_active', ts('Active?')); - $this->add('checkbox', 'is_view', ts('View Only?')); - - // $this->add( 'checkbox', 'is_registration', ts( 'Display in Registration Form?' ) ); - //$this->add( 'checkbox', 'is_match' , ts( 'Key to Match Contacts?' ) ); + $this->add('advcheckbox', 'is_multi_summary', ts('Include in multi-record listing?')); + $this->add('advcheckbox', 'is_active', ts('Active?')); + $this->add('advcheckbox', 'is_view', ts('View Only?')); $this->add('text', 'label', ts('Field Label'), $attributes['label']); -- 2.25.1