Browse Source

Fixes #861.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
ea561ed3e0
  1. 1
      framework/yii/widgets/ActiveField.php

1
framework/yii/widgets/ActiveField.php

@ -410,6 +410,7 @@ class ActiveField extends Component
*/
public function checkbox($options = array(), $enclosedByLabel = true)
{
$options = array_merge($this->inputOptions, $options);
if ($enclosedByLabel) {
if (!isset($options['label'])) {
$options['label'] = Html::encode($this->model->getAttributeLabel($this->attribute));

Loading…
Cancel
Save