From bfde02b1808af48cb6b8c074398e561c074896dd Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 2 Jun 2020 15:32:10 +0400 Subject: [PATCH] Bug 25651: Fix modification of authorised value 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 Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 4d003ad9cd5a0967f3235d687340a8b75d36acd3) Signed-off-by: Lucas Gass --- admin/authorised_values.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index e8cffdd697..8717556086 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -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, -- 2.39.5