From b0964781b6016af1ff01452e4eeb69b33d1ed390 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 7 Oct 2015 12:48:22 +0530 Subject: [PATCH] minor fix --- CRM/Core/Form.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.25.1