From 3ab639f23b1c554ab7cc35c7a14d38f8e5ddd48f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 4 Jul 2022 13:05:45 +0000 Subject: [PATCH] Bug 15348: (QA follow-up) Fix useless use of proviate variable in void context FAIL acqui/moddeliverydate.pl FAIL valid Useless use of private variable in void context --- acqui/moddeliverydate.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/moddeliverydate.pl b/acqui/moddeliverydate.pl index 239a0fc43e..e2dcf6b4eb 100755 --- a/acqui/moddeliverydate.pl +++ b/acqui/moddeliverydate.pl @@ -54,7 +54,7 @@ my $order = GetOrder($ordernumber); my $basket = GetBasket($order->{basketno}); my $bookseller = Koha::Acquisition::Booksellers->find( $basket->{booksellerid} ); -if($op and $op eq 'save') { +if($op && $op eq 'save') { my $estimated_delivery_date = $input->param('estimated_delivery_date'); $order->{'estimated_delivery_date'} = dt_from_string( $estimated_delivery_date ); ModOrder($order); -- 2.30.2