From e55864db2747bd8bc139b3b26c0f5214f1958123 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: Owen Leonard Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- 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.39.5