CRM-18154 - Fix checkboxes on profile field form
authorColeman Watts <coleman@civicrm.org>
Mon, 2 May 2016 23:24:12 +0000 (19:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 2 May 2016 23:24:12 +0000 (19:24 -0400)
CRM/UF/Form/Field.php

index 72380b33e1c71a77965eeac684b0432ef91b41da..4e2a27168ef508efc01a4f66a284b99dd8a67e4f 100644 (file)
@@ -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']);