From ade4f87028004d67bbb4b219798a983cd23c6a20 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 7 Jan 2018 14:06:14 -0300 Subject: [PATCH] Bug 19933: Remove patronflags - unused vars oldamount/amountold in circulation.pl There is oldamound/amountold variable that is sent to the template but never used later. Let remove it now to avoid useless replacement. --- circ/circulation.pl | 4 ---- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 - 2 files changed, 5 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index ee73f6adbe..7581224565 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -555,9 +555,6 @@ foreach my $flag ( sort keys %$flags ) { } } -my $amountold = $flags ? $flags->{'CHARGES'}->{'message'} || 0 : 0; -$amountold =~ s/^.*\$//; # remove upto the $, if any - my $total = $patron ? $patron->account->balance : 0; if ( $patron && $patron->category->category_type eq 'C') { @@ -639,7 +636,6 @@ $template->param( borrowernumber => $borrowernumber, branch => $branch, was_renewed => scalar $query->param('was_renewed') ? 1 : 0, - amountold => $amountold, barcodes => $barcodes, stickyduedate => $stickyduedate, duedatespec => $duedatespec, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index ea1389c95b..3c6a8cfe65 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -603,7 +603,6 @@ No patron matched [% message | html %] [% IF ( CHARGES ) %] - [% END %] [% IF ( issue ) %] -- 2.11.0