Lines 549-555
if ($op eq "additem") {
Link Here
|
549 |
|
549 |
|
550 |
my $itemnumber = $input->param('itemnumber'); |
550 |
my $itemnumber = $input->param('itemnumber'); |
551 |
my $item = Koha::Items->find($itemnumber); |
551 |
my $item = Koha::Items->find($itemnumber); |
552 |
# FIXME Handle non existent item |
552 |
unless ($item) { |
|
|
553 |
C4::Output::output_error( $input, '404' ); |
554 |
exit; |
555 |
} |
553 |
my $olditemlost = $item->itemlost; |
556 |
my $olditemlost = $item->itemlost; |
554 |
my @columns = Koha::Items->columns; |
557 |
my @columns = Koha::Items->columns; |
555 |
my $new_values = $item->unblessed; |
558 |
my $new_values = $item->unblessed; |
556 |
- |
|
|