From 5095e0a9543773e933be567ce3dab507013f4dde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Sun, 31 Oct 2021 12:22:06 +0000 Subject: [PATCH] Bug 29283: (QA follow-up) Remove code duplication MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We have already a search filter for active orders. Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- acqui/basket.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/acqui/basket.pl b/acqui/basket.pl index 3694348a5a..1a2b2758a0 100755 --- a/acqui/basket.pl +++ b/acqui/basket.pl @@ -127,9 +127,7 @@ if ( $op eq 'delete_confirm' ) { my $delbiblio = $query->param('delbiblio'); my $basket_obj = Koha::Acquisition::Baskets->find($basketno); - my $orders = $basket_obj->orders->search({ - datecancellationprinted => undef - }); + my $orders = $basket_obj->orders->filter_by_current; my @cannotdelbiblios; -- 2.39.5