Bugzilla – Attachment 164001 Details for
Bug 28869
Optionally restrict authorised values to tinyint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28869: (follow-up) Switch to cud-edit_category for CSRF
Bug-28869-follow-up-Switch-to-cud-editcategory-for.patch (text/plain), 1.99 KB, created by
Marcel de Rooy
on 2024-03-27 13:19:55 UTC
(
hide
)
Description:
Bug 28869: (follow-up) Switch to cud-edit_category for CSRF
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-03-27 13:19:55 UTC
Size:
1.99 KB
patch
obsolete
>From 71817d980b59b6fc411d37267ad4999d8509f73c Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 27 Mar 2024 13:18:21 +0000 >Subject: [PATCH] Bug 28869: (follow-up) Switch to cud-edit_category for CSRF >Content-Type: text/plain; charset=utf-8 > >No test plan. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 fd119895a3..5ce83f4bdb 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 %] > </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 %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28869
:
161745
|
161746
|
161747
|
161748
|
161749
|
162412
|
162413
|
162414
|
162415
|
162416
|
163996
|
163997
|
163998
|
163999
|
164000
|
164001
|
166697
|
166698
|
166699
|
166700
|
166701
|
166702
|
166906