replace on cardsaving ö to 0

This commit is contained in:
2016-01-04 08:58:44 +01:00
parent 42079ce9b2
commit 94c3a17075
3 changed files with 13 additions and 2 deletions

View File

@@ -99,7 +99,8 @@ class CardController extends \backend\controllers\BackendController
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id_card]);
return $this->redirect(['index']);
// return $this->redirect(Yii::$app->request->referrer);
} else {
return $this->render('update', [
'model' => $model,