From: yashodha Date: Thu, 5 May 2016 07:44:35 +0000 (+0530) Subject: CRM-18154: change checkbox to advcheckbox to ensure unsetting works fine X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ccbeed458686007476ed45b5b31c46af230f2495;p=civicrm-core.git CRM-18154: change checkbox to advcheckbox to ensure unsetting works fine ---------------------------------------- * CRM-18154: Profile custom field option: "Include in multi-record listing" un-ticked, but still persists https://issues.civicrm.org/jira/browse/CRM-18154 --- diff --git a/CRM/Custom/Form/Field.php b/CRM/Custom/Form/Field.php index c3d7d85eb8..81676a071d 100644 --- a/CRM/Custom/Form/Field.php +++ b/CRM/Custom/Form/Field.php @@ -486,7 +486,7 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { $this->addRule('weight', ts('is a numeric field'), 'numeric'); // is required ? - $this->add('checkbox', 'is_required', ts('Required?')); + $this->add('advcheckbox', 'is_required', ts('Required?')); // checkbox / radio options per line $this->add('text', 'options_per_line', ts('Options Per Line')); @@ -510,10 +510,10 @@ class CRM_Custom_Form_Field extends CRM_Core_Form { $this->add('advcheckbox', 'is_active', ts('Active?')); // is active ? - $this->add('checkbox', 'is_view', ts('View Only?')); + $this->add('advcheckbox', 'is_view', ts('View Only?')); // is searchable ? - $this->addElement('checkbox', + $this->addElement('advcheckbox', 'is_searchable', ts('Is this Field Searchable?'), NULL, array('onclick' => "showSearchRange(this)")