Bug 34478: Manual fix - add cud- op for checkouts - circulation.tt
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
16a05fa41a
commit
3a8ada1e0f
|
|
@ -111,6 +111,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user (
|
|||
}
|
||||
);
|
||||
|
||||
my $op = $query->param('op');
|
||||
my $override_high_holds = $query->param('override_high_holds');
|
||||
my $override_high_holds_tmp = $query->param('override_high_holds_tmp');
|
||||
|
||||
|
|
@ -137,7 +138,7 @@ if ( C4::Context->preference("AutoSwitchPatron") && $barcode ) {
|
|||
$findborrower ||= $query->param('findborrower') || q{};
|
||||
$findborrower =~ s|,| |g;
|
||||
|
||||
if ( $query->param('confirm_hold') ) {
|
||||
if ( $op eq 'cud-confirm_hold' && $query->param('confirm_hold') ) {
|
||||
my $reserve_id = $query->param('confirm_hold');
|
||||
my $hold_branch = $query->param('hold_branch');
|
||||
my $hold_itemnumber = $query->param('hold_itemnumber');
|
||||
|
|
@ -310,7 +311,7 @@ if ($patron) {
|
|||
# STEP 3 : ISSUING
|
||||
#
|
||||
#
|
||||
if (@$barcodes) {
|
||||
if (@$barcodes && $op eq 'cud-checkout') {
|
||||
my $checkout_infos;
|
||||
for my $barcode ( @$barcodes ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -277,6 +277,7 @@
|
|||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<fieldset>
|
||||
<input type="hidden" name="restoreduedatespec" />
|
||||
<input type="hidden" name="op" value="cud-checkout" />
|
||||
|
||||
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
|
||||
|
||||
|
|
@ -383,6 +384,7 @@
|
|||
[% IF ADDITIONAL_MATERIALS && !CAN_user_circulate_force_checkout %]
|
||||
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" autocomplete="off">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-checkout" />
|
||||
<input type="hidden" name="restoreduedatespec" />
|
||||
|
||||
[% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
|
||||
|
|
@ -408,6 +410,7 @@
|
|||
[% IF ( RESERVED or RESERVE_WAITING or TRANSFERRED or PROCESSING ) %]
|
||||
<form method="post" action="/cgi-bin/koha/circ/circulation.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-confirm_hold" />
|
||||
<input type="hidden" name="restoreduedatespec" />
|
||||
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
|
||||
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
|
||||
|
|
@ -668,6 +671,7 @@
|
|||
<input type="hidden" name="forceallow" value="1">
|
||||
[% END %]
|
||||
<input type="hidden" name="restoreduedatespec" />
|
||||
<input type="hidden" name="op" value="cud-checkout" />
|
||||
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
|
||||
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
|
||||
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />
|
||||
|
|
@ -724,6 +728,7 @@
|
|||
<div class="col-sm-6">
|
||||
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="op" value="cud-checkout" />
|
||||
<input type="hidden" name="restoreduedatespec" />
|
||||
[% IF ( issue ) %]
|
||||
<fieldset id="circ_circulation_issue" class="lastchecked">
|
||||
|
|
|
|||
Loading…
Reference in New Issue