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' );

View file

@ -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>