added further fix
This commit is contained in:
parent
cd4f13bf8c
commit
de9d70432f
2 changed files with 2 additions and 2 deletions
|
@ -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' );
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<div class="form-group">
|
||||
<label for="category-id">Token ID</label>
|
||||
<input id="category-id" type="text" class="form-control" placeholder="Token ID" name="id" value="<%= $category->id %>">
|
||||
<p class="help-block">Do not change the ID unless <strong>absolutely</strong> necessary. This will result in an error reading as it can no longer find it from the same ID.</p>
|
||||
<p class="help-block">Do not change the ID unless <strong>absolutely</strong> necessary.</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary form-control" type="submit">Update</button>
|
||||
|
|
Reference in a new issue