From: jitendrapurohit Date: Wed, 7 Oct 2015 07:18:22 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b0964781b6016af1ff01452e4eeb69b33d1ed390;p=civicrm-core.git minor fix --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 8b6f031aed..e22c212549 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1460,7 +1460,9 @@ class CRM_Core_Form extends HTML_QuickForm_Page { //add support for 'Advcheckbox' field case 'advcheckbox': - return $this->addElement('advcheckbox', $name, NULL); + $text = isset($props['text']) ? $props['text'] : NULL; + unset($props['text']); + return $this->addElement('advcheckbox', $name, $label, $text, $props); case 'File': // We should not build upload file in search mode.