Bug 34478: Move to get for modborrowers

Bug 34478: [TO SQUASH] tools/modborrowers

We actually want to POST here to not reach the limit of a GET request.
It also fixes the following warning in the console:
  Form contains enctype=multipart/form-data, but does not contain method=post.  Submitting normally with method=GET and no enctype instead.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-02-13 09:06:13 +01:00
parent f1ecd4eef1
commit cf445df109
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -206,14 +206,14 @@ if ( $op eq 'cud-show' ) {
,
{
name => "branchcode",
type => "cud-select",
type => "select",
option => \@branches_option,
mandatory => ( grep /branchcode/, @mandatoryFields ) ? 1 : 0,
}
,
{
name => "categorycode",
type => "cud-select",
type => "select",
option => \@categories_option,
mandatory => ( grep /categorycode/, @mandatoryFields ) ? 1 : 0,
}
@ -280,14 +280,14 @@ if ( $op eq 'cud-show' ) {
,
{
name => "sort1",
type => @sort1_option ? "cud-select" : "text",
type => @sort1_option ? "select" : "text",
option => \@sort1_option,
mandatory => ( grep /sort1/, @mandatoryFields ) ? 1 : 0,
}
,
{
name => "sort2",
type => @sort2_option ? "cud-select" : "text",
type => @sort2_option ? "select" : "text",
option => \@sort2_option,
mandatory => ( grep /sort2/, @mandatoryFields ) ? 1 : 0,
}
@ -335,6 +335,7 @@ if ( $op eq 'cud-show' ) {
$template->param('patron_attributes_values', \@patron_attributes_values);
$template->param( fields => \@fields );
$op = 'show';
}
# Process modifications