Browse Source

Fixes #5058: `yii\helpers\Html::activeCheckbox()` and `activeRadio()` will generate labels by default using the corresponding attribute labels

tags/2.0.0-rc
Qiang Xue 10 years ago
parent
commit
b0eae2848c
  1. 6
      ActiveField.php

6
ActiveField.php

@ -207,8 +207,7 @@ class ActiveField extends \yii\widgets\ActiveField
$this->labelOptions['class'] = null;
}
parent::checkbox($options, false);
return $this;
return parent::checkbox($options, false);
}
/**
@ -230,8 +229,7 @@ class ActiveField extends \yii\widgets\ActiveField
$this->labelOptions['class'] = null;
}
parent::radio($options, false);
return $this;
return parent::radio($options, false);
}
/**

Loading…
Cancel
Save