From de9d70432fa3301375a6eb615901a9ce6422d200 Mon Sep 17 00:00:00 2001 From: Finn Date: Wed, 17 Jan 2018 17:38:07 +0000 Subject: [PATCH] added further fix --- lib/Pear/LocalLoop/Controller/Admin/Categories.pm | 2 +- templates/admin/categories/read.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Admin/Categories.pm b/lib/Pear/LocalLoop/Controller/Admin/Categories.pm index 00d2e46..f5ec913 100644 --- a/lib/Pear/LocalLoop/Controller/Admin/Categories.pm +++ b/lib/Pear/LocalLoop/Controller/Admin/Categories.pm @@ -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' ); diff --git a/templates/admin/categories/read.html.ep b/templates/admin/categories/read.html.ep index f409807..5e32820 100644 --- a/templates/admin/categories/read.html.ep +++ b/templates/admin/categories/read.html.ep @@ -19,7 +19,7 @@
-

Do not change the ID unless absolutely necessary. This will result in an error reading as it can no longer find it from the same ID.

+

Do not change the ID unless absolutely necessary.