View | Details | Raw Unified | Return to bug 7639
Collapse All | Expand All

(-)a/cataloguing/additem.pl (-2 / +4 lines)
Lines 599-605 if ($op eq "additem") { Link Here
599
    }
599
    }
600
  my $item = GetItem( $itemnumber );
600
  my $item = GetItem( $itemnumber );
601
    my $olditemlost =  $item->{'itemlost'};
601
    my $olditemlost =  $item->{'itemlost'};
602
    my $newitemlost = $itemtosave->subfield('952','1');
602
603
   my ($lost_tag,$lost_subfield) = GetMarcFromKohaField("items.itemlost",'');
604
605
   my $newitemlost = $itemtosave->subfield( $lost_tag, $lost_subfield );
603
    if (($olditemlost eq '0' or $olditemlost eq '' ) and $newitemlost ge '1'){
606
    if (($olditemlost eq '0' or $olditemlost eq '' ) and $newitemlost ge '1'){
604
  LostItem($itemnumber,'MARK RETURNED');
607
  LostItem($itemnumber,'MARK RETURNED');
605
    }
608
    }
606
- 

Return to bug 7639