Bug 27017: (QA follow-up) Don't die if aqorders.biblionumber is null

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2022-10-27 14:03:05 -04:00 committed by Tomas Cohen Arazi
parent c009c3fa81
commit e714213359
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 2 deletions

View File

@ -321,8 +321,8 @@ sub process_invoice {
$line->quantity );
my $order = $schema->resultset('Aqorder')->find($ordernumber);
if ($order->biblionumber->biblionumber) {
my $b = $order->biblionumber->biblionumber;
if (my $bib = $order->biblionumber) {
my $b = $bib->biblionumber;
my $id = $line->item_number_id;
$logger->trace("Updating bib:$b id:$id");
}