Fix typo in patch for bug 7849
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 24 Apr 2012 13:27:58 +0000 (14:27 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 30 Apr 2012 12:12:43 +0000 (14:12 +0200)
$type declared twice effectively throwing away the returned value

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Circulation.pm

index b7e08f2..3742ec7 100644 (file)
@@ -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},