From 7794cf2eb36662ce11e96cf87e7a87396df538f3 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 21 Jul 2009 09:28:19 +0200 Subject: [PATCH] (bug #3432) fix return of lost items This patch delete some useless code, and fix the problem that if a lost item is returned, the lost flag is not deleted. Signed-off-by: Henri-Damien LAURENT --- C4/Circulation.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 81cc80172f..9ad4ff614c 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1380,10 +1380,6 @@ sub AddReturn { if ($iteminformation->{borrowernumber}){ ($borrower) = C4::Members::GetMemberDetails( $iteminformation->{borrowernumber}, 0 ); } - } - # fix up the accounts..... - if ( $iteminformation->{'itemlost'} ) { - $messages->{'WasLost'} = 1; } # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # @@ -1413,6 +1409,7 @@ sub AddReturn { # fix up the accounts..... if ($iteminformation->{'itemlost'}) { FixAccountForLostAndReturned($iteminformation, $borrower); + ModItem({ itemlost => '0' }, $biblio->{'biblionumber'}, $iteminformation->{'itemnumber'}); $messages->{'WasLost'} = 1; } # fix up the overdues in accounts... -- 2.39.5