Bug 34478: Manual fix - add op admin/branch_transfer_limits
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4dbdcb0908
commit
4f54b9ccd6
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@
|
|||
|
||||
<form method="post" action="branch_transfer_limits.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-update" />
|
||||
[% WRAPPER tab_panels %]
|
||||
[% FOREACH codes_loo IN codes_loop %]
|
||||
[% WRAPPER tab_panel tabname=codes_loo.code %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue