[Koha-patches] [PATCH] Fix typo in patch for bug 7849

Colin Campbell colin.campbell at ptfs-europe.com
Tue Apr 24 15:34:46 CEST 2012


$type declared twice effectively throwing away the returned value
---
 C4/Circulation.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index b7e08f2..3742ec7 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -1616,7 +1616,7 @@ sub AddReturn {
         if ($borrowernumber) {
         if($issue->{'overdue'}){
                 my ( $amount, $type, $daycounttotal ) = C4::Overdues::CalcFine( $item, $borrower->{categorycode},$branch, $datedue, $today );
-                my $type ||= q{};
+                $type ||= q{};
         if ( $amount > 0 && ( C4::Context->preference('finesMode') eq 'production' )) {
           C4::Overdues::UpdateFine(
               $issue->{itemnumber},
-- 
1.7.7.6



More information about the Koha-patches mailing list