From 4f54b9ccd6cf0b405bd0aaddd961a2b9921f4f40 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 5 Feb 2024 22:35:36 +0000 Subject: [PATCH] Bug 34478: Manual fix - add op admin/branch_transfer_limits Signed-off-by: Jonathan Druart --- admin/branch_transfer_limits.pl | 3 ++- .../prog/en/modules/admin/branch_transfer_limits.tt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/branch_transfer_limits.pl b/admin/branch_transfer_limits.pl index 35b1386388..3b45a68867 100755 --- a/admin/branch_transfer_limits.pl +++ b/admin/branch_transfer_limits.pl @@ -27,6 +27,7 @@ use C4::Output qw( output_html_with_http_headers ); use C4::Circulation qw( DeleteBranchTransferLimits CreateBranchTransferLimit IsBranchTransferAllowed ); my $input = CGI->new; +my $op = $input->param('op') || q{}; my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "admin/branch_transfer_limits.tt", @@ -60,7 +61,7 @@ if ( $limitType eq 'ccode' ) { @branchcodes = Koha::Libraries->search->get_column('branchcode'); ## If Form Data Passed, Update the Database -if ( $input->param('updateLimits') ) { +if ( $input->param('updateLimits') && $op eq 'cud-update' ) { DeleteBranchTransferLimits($branchcode); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt index 8c304cc598..2219fedda3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt @@ -66,6 +66,7 @@
[% INCLUDE 'csrf-token.inc' %] + [% WRAPPER tab_panels %] [% FOREACH codes_loo IN codes_loop %] [% WRAPPER tab_panel tabname=codes_loo.code %] -- 2.39.5