From ccbeed458686007476ed45b5b31c46af230f2495 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 5 May 2016 13:14:35 +0530 Subject: [PATCH] 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 --- CRM/Custom/Form/Field.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)") -- 2.25.1