Browse Source

Fixes #16527: Fixed return content for `\yii\widgets\ActiveForm::run()`

tags/2.0.16
Александр Касьянов 6 years ago committed by Alexander Makarov
parent
commit
9d03667b40
  1. 2
      framework/CHANGELOG.md
  2. 7
      framework/widgets/ActiveForm.php

2
framework/CHANGELOG.md

@ -3,7 +3,7 @@ Yii Framework 2 Change Log
2.0.16 under development
------------------------
- Bug #16527: Fixed return content for `\yii\widgets\ActiveForm::run()` (carono)
- Bug #15826: Fixed JavaScript compareValidator in `yii.validation.js` for attributes not in rules (mgrechanik)
- Enh #16365: Added $filterOnFocusOut option for GridView (s1lver)
- Enh #14289: Added `yii\db\Command::executeResetSequence()` to work with Oracle (CedricYii)

7
framework/widgets/ActiveForm.php

@ -221,14 +221,15 @@ class ActiveForm extends Widget
}
$content = ob_get_clean();
echo Html::beginForm($this->action, $this->method, $this->options);
echo $content;
$html = Html::beginForm($this->action, $this->method, $this->options);
$html .= $content;
if ($this->enableClientScript) {
$this->registerClientScript();
}
echo Html::endForm();
$html .= Html::endForm();
return $html;
}
/**

Loading…
Cancel
Save