From 4414f57179bcd6e6b918326c36deb41b11f9a725 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 Signed-off-by: Owen Leonard --- 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.20.1