Bug 28869: (follow-up) Switch to cud-edit_category for CSRF

No test plan.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-03-27 13:18:21 +00:00 committed by Katrin Fischer
parent e62468de2e
commit 629fac61f8
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -156,7 +156,7 @@
[% END %]
</li>
</ol>
<input type="hidden" name="op" value="edit_category" />
<input type="hidden" name="op" value="cud-edit_category" />
<input type="hidden" name="category" value="[% category_name | html %]" />
<input type="hidden" name="searchfield" value="[% category_name | html %]" />
[% ELSE %]