From 4a2447f432709192a762987c7e3d82725868a7e1 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Owen Leonard Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- 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 cfc8066104..ef615a4e0d 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -138,7 +138,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.39.5