mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
Merge pull request #1573 from jom/master
Fixed issue with tabular input in ActiveField::radio and checkbox
This commit is contained in:
@@ -12,6 +12,7 @@ Yii Framework 2 Change Log
|
||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
||||
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
|
||||
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
|
||||
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
|
||||
- Enh #1437: Added ListView::viewParams (qiangxue)
|
||||
|
||||
@@ -371,7 +371,8 @@ class ActiveField extends Component
|
||||
{
|
||||
if ($enclosedByLabel) {
|
||||
if (!isset($options['label'])) {
|
||||
$options['label'] = Html::encode($this->model->getAttributeLabel($this->attribute));
|
||||
$attribute = Html::getAttributeName($this->attribute);
|
||||
$options['label'] = Html::encode($this->model->getAttributeLabel($attribute));
|
||||
}
|
||||
$this->parts['{input}'] = Html::activeRadio($this->model, $this->attribute, $options);
|
||||
$this->parts['{label}'] = '';
|
||||
@@ -406,7 +407,8 @@ class ActiveField extends Component
|
||||
{
|
||||
if ($enclosedByLabel) {
|
||||
if (!isset($options['label'])) {
|
||||
$options['label'] = Html::encode($this->model->getAttributeLabel($this->attribute));
|
||||
$attribute = Html::getAttributeName($this->attribute);
|
||||
$options['label'] = Html::encode($this->model->getAttributeLabel($attribute));
|
||||
}
|
||||
$this->parts['{input}'] = Html::activeCheckbox($this->model, $this->attribute, $options);
|
||||
$this->parts['{label}'] = '';
|
||||
|
||||
Reference in New Issue
Block a user