[Koha-bugs] [Bug 14092] Order search doesn't allow to search for 'all statuses'

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 3 13:59:21 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14092

--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
diff --git a/t/db_dependent/Acquisition.t b/t/db_dependent/Acquisition.t
index d102a343a0..a5a165d777 100755
--- a/t/db_dependent/Acquisition.t
+++ b/t/db_dependent/Acquisition.t
@@ -995,13 +995,13 @@ subtest 'GetHistory status search' => sub {
     };
     $order = $builder->build( { source => 'Aqorder', value => $orderinfo2 } );

-    $orders = GetHistory( order_status => "new", vendornote => 'status search'
);
+    $orders = GetHistory( basket => $order_basket->{basketno}, order_status =>
"new", vendornote => 'status search' );
     is( scalar(@$orders), 1, 'GetHistory with order status "new" returns 1
order' );

-    my $orders = GetHistory( get_canceled_order => 1, order_status => "any",
vendornote => 'status search' );
+    my $orders = GetHistory( basket => $order_basket->{basketno},
get_canceled_order => 1, order_status => "any", vendornote => 'status search'
);
     is( scalar(@$orders), 2, 'GetHistory with order status "any" returns all
orders' );

-    $orders = GetHistory( order_status => "", vendornote => 'status search' );
+    $orders = GetHistory( basket => $order_basket->{basketno}, order_status =>
"", vendornote => 'status search' );
     is( scalar(@$orders), 1, 'GetHistory with order status "all except
cancelled" returns zero orders' );
 };

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list