This patch delete some useless code, and fix the problem that if a lost item is 
returned, the lost flag is not deleted.
---
 C4/Circulation.pm |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index f335975..867494a 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -1375,10 +1375,6 @@ sub AddReturn {
             if ($iteminformation->{borrowernumber}){
               ($borrower) = C4::Members::GetMemberDetails( 
$iteminformation->{borrowernumber}, 0 );
             }
-        }       
-        # fix up the accounts.....
-        if ( $iteminformation->{'itemlost'} ) {
-            $messages->{'WasLost'} = 1;
         }
     
     # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
# #
@@ -1408,6 +1404,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...
-- 
1.6.0.4

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to