added further fix

This commit is contained in:
Finn 2018-01-17 17:38:07 +00:00
parent 25f9d818f8
commit 8c9bcbf85c
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ sub update {
name => $validation->param('category'),
});
$c->flash( success => 'Category Updated' );
$c->redirect_to( '/admin/categories/' . $id );
$c->redirect_to( '/admin/categories/' . $validation->param('id') );
} else {
$c->flash( error => 'No Category found' );
$c->redirect_to( '/admin/categories' );