From b8821b33f29c6200ce78f47aa16e274ef575d58e Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 2 Aug 2022 12:40:04 +1200 Subject: [PATCH] Bug 15326: (follow-up) Hide RSS feed if no news items If there are pages but no news items showing on the OPAC, the RSS feed container should not show. Sponsored-by: Horowhenua Libraries Trust Signed-off-by: Lisette Scheer Signed-off-by: Lisette Scheer --- Koha/AdditionalContents.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/AdditionalContents.pm b/Koha/AdditionalContents.pm index 711b187ad3..a33152b3ee 100644 --- a/Koha/AdditionalContents.pm +++ b/Koha/AdditionalContents.pm @@ -75,6 +75,7 @@ sub search_for_display { $search_params->{published_on} = { '<=' => \'CAST(NOW() AS DATE)' }; $search_params->{-or} = [ expirationdate => { '>=' => \'CAST(NOW() AS DATE)' }, expirationdate => undef ]; + $search_params->{category} = $params->{category} if $params->{category}; if ( $params->{lang} ) { # FIXME I am failing to translate the following query -- 2.30.2