Bug 5349: Fix a logical test in TransferOrder
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 14 Sep 2012 14:32:48 +0000 (16:32 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 22:38:27 +0000 (22:38 +0000)
Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: sonia <koha@univ-lyon3.fr>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Acquisition.pm

index d17c7cf..5662e0b 100644 (file)
@@ -1613,7 +1613,7 @@ Return the ordernumber of created order.
 sub TransferOrder {
     my ($ordernumber, $basketno) = @_;
 
-    return unless $ordernumber or $basketno;
+    return unless ($ordernumber and $basketno);
 
     my $order = GetOrder( $ordernumber );
     return if $order->{datereceived};