Browse Source

Fix case for ActiveField::checkboxTemplate use

tags/2.0.0-rc
Stephen Packer 11 years ago
parent
commit
2d0a880069
  1. 2
      ActiveField.php

2
ActiveField.php

@ -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']);

Loading…
Cancel
Save