Fix typo in patch for bug 7849

$type declared twice effectively throwing away the returned value

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Colin Campbell 2012-04-24 14:27:58 +01:00 committed by Paul Poulain
parent d06c231982
commit 49ba0df9e7

View 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},