Lines 104-110
for (@failedreturns) { $return_failed{$_} = 1; }
Link Here
|
104 |
my $findborrower = $query->param('findborrower'); |
104 |
my $findborrower = $query->param('findborrower'); |
105 |
$findborrower =~ s|,| |g; |
105 |
$findborrower =~ s|,| |g; |
106 |
my $borrowernumber = $query->param('borrowernumber'); |
106 |
my $borrowernumber = $query->param('borrowernumber'); |
107 |
|
|
|
108 |
$branch = C4::Context->userenv->{'branch'}; |
107 |
$branch = C4::Context->userenv->{'branch'}; |
109 |
$printer = C4::Context->userenv->{'branchprinter'}; |
108 |
$printer = C4::Context->userenv->{'branchprinter'}; |
110 |
|
109 |
|
Lines 132-137
my $issueconfirmed = $query->param('issueconfirmed');
Link Here
|
132 |
my $cancelreserve = $query->param('cancelreserve'); |
131 |
my $cancelreserve = $query->param('cancelreserve'); |
133 |
my $organisation = $query->param('organisations'); |
132 |
my $organisation = $query->param('organisations'); |
134 |
my $print = $query->param('print'); |
133 |
my $print = $query->param('print'); |
|
|
134 |
my $finesredirect = $query->param('finesredirect'); |
135 |
my $newexpiry = $query->param('dateexpiry'); |
135 |
my $newexpiry = $query->param('dateexpiry'); |
136 |
my $debt_confirmed = $query->param('debt_confirmed') || 0; # Don't show the debt error dialog twice |
136 |
my $debt_confirmed = $query->param('debt_confirmed') || 0; # Don't show the debt error dialog twice |
137 |
|
137 |
|
Lines 180-185
if ( $print eq 'yes' && $borrowernumber ne '' ) {
Link Here
|
180 |
NetworkPrint($letter->{content}); |
180 |
NetworkPrint($letter->{content}); |
181 |
} |
181 |
} |
182 |
$query->param( 'borrowernumber', '' ); |
182 |
$query->param( 'borrowernumber', '' ); |
|
|
183 |
} |
184 |
|
185 |
if ( $finesredirect && $borrowernumber ne '' && $barcode eq '' ){ |
186 |
print $query->redirect("/cgi-bin/koha/members/pay.pl?borrowernumber=$borrowernumber"); |
187 |
} |
188 |
|
189 |
# this was initially inside the previous if with the same conditions but was interfering with $finesredirect |
190 |
if ( $print eq 'yes' && $borrowernumber ne '' ) { |
183 |
$borrowernumber = ''; |
191 |
$borrowernumber = ''; |
184 |
} |
192 |
} |
185 |
|
193 |
|
Lines 716-721
$template->param(
Link Here
|
716 |
activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), |
724 |
activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), |
717 |
SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'), |
725 |
SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'), |
718 |
AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), |
726 |
AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), |
|
|
727 |
CircPayFinesRedirect => (C4::Context->preference('CircPayFinesRedirect') ? $total > 0 : 0 ), |
719 |
); |
728 |
); |
720 |
|
729 |
|
721 |
# save stickyduedate to session |
730 |
# save stickyduedate to session |