diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 2526525..8119318 100644 --- a/framework/CHANGELOG.md +++ b/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) diff --git a/framework/widgets/ActiveForm.php b/framework/widgets/ActiveForm.php index 7da1da9..1d5fdc6 100644 --- a/framework/widgets/ActiveForm.php +++ b/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; } /**