Bug 14272: (follow-up) Show single display of 'all' news
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 28 Nov 2018 22:01:41 +0000 (22:01 +0000)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:15 +0000 (13:52 +0000)
This patch ensures that news items with location set to 'all' can be
clicked on and shown individually also.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

opac/opac-main.pl

index e651a55..fbfd925 100755 (executable)
@@ -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 {