Skip to content

Commit

Permalink
translate fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DoniyorY committed Jul 8, 2024
1 parent b17be7e commit 2312446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controllers/MenuCategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function actionUpdate($id)
$model = $this->findModel($id);

if ($this->request->isPost && $model->load($this->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
return $this->redirect(['index']);
}

return $this->render('update', [
Expand Down
2 changes: 1 addition & 1 deletion backend/views/menu-category/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'urlCreator' => function ($action, MenuCategory $model, $key, $index, $column) {
return Url::toRoute([$action, 'id' => $model->id]);
},
'template'=>'{delete}'
'template'=>'{update} {delete}'
],
],
]); ?>
Expand Down

0 comments on commit 2312446

Please sign in to comment.