From 629fac61f8d120b98cdef62bb380850a620d38ad 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 Signed-off-by: Katrin Fischer --- 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 a05a4f77bf..9513ce7eda 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 cba5618e83..3203d1c61b 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.39.5