Skip to content

Commit

Permalink
Fixes yiisoft#7998. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Apr 7, 2015
1 parent 8805db1 commit 1cd6047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide-ja/db-active-record.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public function actionUpdate($id)

try {
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', <?= $urlParams ?>]);
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('update', [
'model' => $model,
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/db-active-record.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ public function actionUpdate($id)

try {
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', <?= $urlParams ?>]);
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('update', [
'model' => $model,
Expand Down

0 comments on commit 1cd6047

Please sign in to comment.