From 56d9725fbc659a8da682381bb8b572d08d6d8577 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 16 Jul 2021 14:44:10 +0000 Subject: [PATCH] Bug 28718: handle multiple deletions from news To test: 1. have multiple news 2. check several of them and and click 'Delete selected' 3. see ugly error 4. apply patch 5. try again 6. no error --- tools/koha-news.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/koha-news.pl b/tools/koha-news.pl index 65f560a5dd..fa8db8913f 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -140,7 +140,7 @@ elsif ( $op eq 'edit' ) { } elsif ( $op eq 'del' ) { my @ids = $cgi->multi_param('ids'); - Koha::News->search({ idnew => @ids })->delete; + Koha::News->search({ idnew => \@ids })->delete; print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } -- 2.20.1