From 5e3c930e58af5e74e1078abf807a1fb7fe3eedc3 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 23 Oct 2012 08:03:16 -0400 Subject: [PATCH] Bug 7639 - system preference to forgive fines on lost items - QA Followup --- cataloguing/additem.pl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 5baf2e8..cc54875 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -598,7 +598,10 @@ if ($op eq "additem") { } my $item = GetItem( $itemnumber ); my $olditemlost = $item->{'itemlost'}; - my $newitemlost = $itemtosave->subfield('952','1'); + + my ($lost_tag,$lost_subfield) = GetMarcFromKohaField("items.itemlost",''); + + my $newitemlost = $itemtosave->subfield( $lost_tag, $lost_subfield ); if (($olditemlost eq '0' or $olditemlost eq '' ) and $newitemlost ge '1'){ LostItem($itemnumber,'MARK RETURNED'); } -- 1.7.2.5