From e714213359f8d03ff86f577dd96315b3964d8d30 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Thu, 27 Oct 2022 14:03:05 -0400 Subject: [PATCH] Bug 27017: (QA follow-up) Don't die if aqorders.biblionumber is null Signed-off-by: Tomas Cohen Arazi --- Koha/EDI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 9fc92a48d7..954d32e42b 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -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"); } -- 2.39.5