Bug 23463: (RM follow-up) Add try block around Illrequest item creation
The recently introduced Ill item creation for circulation feature was not properly handling the move from AddItem to Koha::Item->new()->store. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
e6d255b5e5
commit
2edd08b4d8
|
|
@ -1172,8 +1172,10 @@ sub check_out {
|
|||
itype => $params->{item_type},
|
||||
barcode => 'ILL-' . $self->illrequest_id
|
||||
};
|
||||
my $item = Koha::Item->new($item_hash);
|
||||
$itemnumber = $item->itemnumber;
|
||||
try {
|
||||
my $item = Koha::Item->new($item_hash)->store;
|
||||
$itemnumber = $item->itemnumber;
|
||||
};
|
||||
} else {
|
||||
$itemnumber = $items[0]->itemnumber;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue