From b0eae2848cb089c346d6948665dc5c7a53830cdd Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 18 Sep 2014 12:15:54 -0400 Subject: [PATCH] Fixes #5058: `yii\helpers\Html::activeCheckbox()` and `activeRadio()` will generate labels by default using the corresponding attribute labels --- ActiveField.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ActiveField.php b/ActiveField.php index 35e1db8..6c026c0 100644 --- a/ActiveField.php +++ b/ActiveField.php @@ -207,8 +207,7 @@ class ActiveField extends \yii\widgets\ActiveField $this->labelOptions['class'] = null; } - parent::checkbox($options, false); - return $this; + return parent::checkbox($options, false); } /** @@ -230,8 +229,7 @@ class ActiveField extends \yii\widgets\ActiveField $this->labelOptions['class'] = null; } - parent::radio($options, false); - return $this; + return parent::radio($options, false); } /**