$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

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to