Commit 2d8d66e6 by Qiang Xue

Merge pull request #3731 from stevepacker/patch-1

Fix case for ActiveField::checkboxTemplate use
parents 5670bc3d d15b66bf
......@@ -206,7 +206,7 @@ class ActiveField extends \yii\widgets\ActiveField
if ($enclosedByLabel) {
if (!isset($options['template'])) {
$this->template = $this->form->layout === 'horizontal' ?
$this->horizontalCheckboxTemplate : $this->checkBoxTemplate;
$this->horizontalCheckboxTemplate : $this->checkboxTemplate;
} else {
$this->template = $options['template'];
unset($options['template']);
......
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