Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
snewer committed Mar 11, 2018
1 parent da10323 commit 7484536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ItemControllerAbstract.php
Expand Up @@ -141,7 +141,7 @@ protected function performAjaxValidation(Model $model)
{
if (\Yii::$app->request->isAjax && $model->load(\Yii::$app->request->post())) {
\Yii::$app->response->format = Response::FORMAT_JSON;
echo json_encode(ActiveForm::validate($model));
\Yii::$app->response->data = json_encode(ActiveForm::validate($model));
\Yii::$app->end();
}
}
Expand Down

0 comments on commit 7484536

Please sign in to comment.