From 4754a8062c8870f4adc988360fe2ee2316ec50f1 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Fri, 26 Aug 2022 14:32:07 +0200 Subject: [PATCH] Bug 31450 - HTML customizations and News will not display on OPAC without Publication date To test: 1) Create some HTML Customizations and some News items that are set to display on the OPAC. Create one of each: [ 'With publication date today', 'With publication date in the future', 'Without publication date' ] 2) Note that news with publication date 'today' will display; with publication date 'in the future' will not display; with publication date unset will not display. 3) Note that html_customizations with date 'today' will display; with publication date 'in the future' will not display; with publication date unset will display. 4) Sign-Off --- Koha/AdditionalContents.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/AdditionalContents.pm b/Koha/AdditionalContents.pm index 2922c00e5d..7d2138f9f8 100644 --- a/Koha/AdditionalContents.pm +++ b/Koha/AdditionalContents.pm @@ -19,8 +19,6 @@ package Koha::AdditionalContents; use Modern::Perl; -use Data::Dumper; - use Koha::Database; use Koha::Exceptions; use Koha::AdditionalContent; @@ -71,8 +69,6 @@ location is one of this: sub search_for_display { my ( $self, $params ) = @_; - warn Dumper($params); - my $search_params; $search_params->{location} = $params->{location}; $search_params->{branchcode} = $params->{library_id} ? [ $params->{library_id}, undef ] : undef; -- 2.31.1