Bug 8612: Remove warnings from tests

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-06-05 12:35:10 -03:00
parent 273659cc03
commit e3519f1538

View file

@ -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) {