Skip to content

Commit

Permalink
Fixes yiisoft#5110.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Sep 19, 2014
1 parent ff17d96 commit 169a2a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/widgets/ActiveField.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ public function checkbox($options = [], $enclosedByLabel = true)
$this->labelOptions = $options['labelOptions'];
}
}
unset($options['label'], $options['labelOptions']);
unset($options['labelOptions']);
$options['label'] = null;
$this->parts['{input}'] = Html::activeCheckbox($this->model, $this->attribute, $options);
}
$this->adjustLabelFor($options);
Expand Down

0 comments on commit 169a2a3

Please sign in to comment.