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:
parent
e62468de2e
commit
629fac61f8
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue