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:
parent
c009c3fa81
commit
e714213359
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue