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

(-)a/cataloguing/additem.pl (-8 lines)
Lines 473-486 if ($op eq "additem") { Link Here
473
        push @errors,"barcode_not_unique";
473
        push @errors,"barcode_not_unique";
474
        $current_item = $item->unblessed; # Restore edit form for the same item
474
        $current_item = $item->unblessed; # Restore edit form for the same item
475
    } else {
475
    } else {
476
<<<<<<< HEAD
477
        my $newitemlost = $item->itemlost;
476
        my $newitemlost = $item->itemlost;
478
=======
479
        my $newitem = ModItemFromMarc($itemtosave, $biblionumber, $itemnumber);
480
        $itemnumber = q{};
481
        my $olditemlost = $item->itemlost;
482
        my $newitemlost = $newitem->{itemlost};
483
>>>>>>> 5b37193b6fe (Bug 20256: (QA follow-up) Redirect to record details page if user cannot edit this item)
484
        if ( $newitemlost && $newitemlost ge '1' && !$olditemlost ) {
477
        if ( $newitemlost && $newitemlost ge '1' && !$olditemlost ) {
485
            LostItem( $item->itemnumber, 'additem' );
478
            LostItem( $item->itemnumber, 'additem' );
486
        }
479
        }
487
- 

Return to bug 20256