From fc9b78277aacd20ce7a4f305ab0faeed8139c633 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 28 Nov 2018 22:01:41 +0000 Subject: [PATCH] Bug 14272: (follow-up) Show single display of 'all' news This patch ensures that news items with location set to 'all' can be clicked on and shown individually also. Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- opac/opac-main.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/opac/opac-main.pl b/opac/opac-main.pl index e651a555a3..fbfd925d49 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -67,10 +67,7 @@ my $news_id = $input->param('news_id'); my @all_koha_news; if (defined $news_id){ - @all_koha_news = Koha::News->search({ - idnew => $news_id, - lang => $news_lang, - }); + @all_koha_news = Koha::News->search({ idnew => $news_id }); if (scalar @all_koha_news > 0){ $template->param( news_item => @all_koha_news ); } else { -- 2.39.5