From 277498d580d3b1cd21ac55658d01f4293cc724d2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 27 Mar 2024 13:18:21 +0000 Subject: [PATCH] Bug 28869: (follow-up) Switch to cud-edit_category for CSRF No test plan. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- admin/authorised_values.pl | 2 +- .../intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index a05a4f77bf3..9513ce7eda3 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -187,7 +187,7 @@ if ( $op eq 'add_form' or $op eq 'edit_form' ) { } $op = 'list'; -} elsif ( $op eq 'edit_category' ) { +} elsif ( $op eq 'cud-edit_category' ) { my $category_name = $input->param('category'); my $is_integer_only = $input->param('is_integer_only') ? 1 : 0; my $category = Koha::AuthorisedValueCategories->find($category_name); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index cba5618e83a..3203d1c61b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -156,7 +156,7 @@ [% END %] - + [% ELSE %] -- 2.45.0