Commit bbc8152837b4d76644ef5f1b8deb5b61cbf8845e
1 parent
420d3dcd
test
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
frontend/controllers/AccountsController.php
@@ -316,8 +316,7 @@ | @@ -316,8 +316,7 @@ | ||
316 | $post = \Yii::$app->request->post(); | 316 | $post = \Yii::$app->request->post(); |
317 | if($gallery->load($post) && $gallery->save()) { | 317 | if($gallery->load($post) && $gallery->save()) { |
318 | return $this->redirect([ | 318 | return $this->redirect([ |
319 | - 'gallery-update', | ||
320 | - 'id' => $gallery->gallery_id, | 319 | + 'gallery', |
321 | ]); | 320 | ]); |
322 | } else { | 321 | } else { |
323 | return $this->render('_gallery_form', [ | 322 | return $this->render('_gallery_form', [ |
@@ -343,8 +342,7 @@ | @@ -343,8 +342,7 @@ | ||
343 | $post = \Yii::$app->request->post(); | 342 | $post = \Yii::$app->request->post(); |
344 | if($gallery->load($post) && $gallery->save()) { | 343 | if($gallery->load($post) && $gallery->save()) { |
345 | return $this->redirect([ | 344 | return $this->redirect([ |
346 | - 'gallery-update', | ||
347 | - 'id' => $gallery->gallery_id, | 345 | + 'gallery', |
348 | ]); | 346 | ]); |
349 | } else { | 347 | } else { |
350 | return $this->render('_gallery_form', [ | 348 | return $this->render('_gallery_form', [ |