Commit ea561ed3 by Qiang Xue

Fixes #861.

parent 851dfe63
......@@ -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));
......
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