Bug 25651: Fix modification of authorised value
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 2 Jun 2020 11:32:10 +0000 (15:32 +0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Jun 2020 07:57:31 +0000 (09:57 +0200)
When modifying an existing authorised value, the category is not
correctly passed to the template and so it is not passed to the
POST request, which results in the authorised value switching to
category '', which effectively make it disappear from the interface.
This patch fixes that.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

admin/authorised_values.pl

index e8cffdd..8717556 100755 (executable)
@@ -79,7 +79,7 @@ if ($op eq 'add_form') {
 
     if ( $av ) {
         $template->param(
-            category => $av->category,
+            category_name => $av->category,
             authorised_value => $av->authorised_value,
             lib              => $av->lib,
             lib_opac         => $av->lib_opac,