diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 16f442460d..ed80b26484 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -315,8 +315,11 @@ sub GetBasketAsCSV { my $bd = GetBiblioData( $order->{'biblionumber'} ); my @biblioitems = GetBiblioItemByBiblioNumber( $order->{'biblionumber'}); for my $biblioitem (@biblioitems) { - if ($biblioitem->{isbn} eq $order->{isbn}) { - $order = {%$order, %$biblioitem}; + if ( $biblioitem->{isbn} + and $order->{isbn} + and $biblioitem->{isbn} eq $order->{isbn} ) + { + $order = { %$order, %$biblioitem }; } } if ($contract) {