Commit ed17c0d3de1bd80274b5d4b4de1a565caf68c9a0

Authored by Anastasia
1 parent 78254e6c

- bug fix in admin

Showing 1 changed file with 0 additions and 3 deletions   Show diff stats
backend/controllers/BookController.php
... ... @@ -107,9 +107,6 @@
107 107 */
108 108 $model = $this->findModel($id);
109 109  
110   - $model->on_main = true;
111   - $model->save(false, [ 'on_main' ]);
112   -
113 110 if ($model->load(\Yii::$app->request->post()) && $model->save()) {
114 111 $model->saveImage(UploadedFile::getInstanceByName('file'));
115 112 return $this->redirect('index');
... ...