Commit bbc8152837b4d76644ef5f1b8deb5b61cbf8845e

Authored by Yarik
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 316 $post = \Yii::$app->request->post();
317 317 if($gallery->load($post) && $gallery->save()) {
318 318 return $this->redirect([
319   - 'gallery-update',
320   - 'id' => $gallery->gallery_id,
  319 + 'gallery',
321 320 ]);
322 321 } else {
323 322 return $this->render('_gallery_form', [
... ... @@ -343,8 +342,7 @@
343 342 $post = \Yii::$app->request->post();
344 343 if($gallery->load($post) && $gallery->save()) {
345 344 return $this->redirect([
346   - 'gallery-update',
347   - 'id' => $gallery->gallery_id,
  345 + 'gallery',
348 346 ]);
349 347 } else {
350 348 return $this->render('_gallery_form', [
... ...