Commit b0eae284 authored by Qiang Xue's avatar Qiang Xue

Fixes #5058: `yii\helpers\Html::activeCheckbox()` and `activeRadio()` will...

Fixes #5058: `yii\helpers\Html::activeCheckbox()` and `activeRadio()` will generate labels by default using the corresponding attribute labels
parent c3d62ce6
...@@ -207,8 +207,7 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -207,8 +207,7 @@ class ActiveField extends \yii\widgets\ActiveField
$this->labelOptions['class'] = null; $this->labelOptions['class'] = null;
} }
parent::checkbox($options, false); return parent::checkbox($options, false);
return $this;
} }
/** /**
...@@ -230,8 +229,7 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -230,8 +229,7 @@ class ActiveField extends \yii\widgets\ActiveField
$this->labelOptions['class'] = null; $this->labelOptions['class'] = null;
} }
parent::radio($options, false); return parent::radio($options, false);
return $this;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment