From c124c812f13c502ed9a2e249625209e63383a5c6 Mon Sep 17 00:00:00 2001 From: Jussiles Date: Mon, 13 Feb 2023 11:53:59 +0200 Subject: [PATCH] UHF-8070: UHF-8070: don't load places filter values when filter is not applied. --- hdbt.theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hdbt.theme b/hdbt.theme index 3920c9978..9a6dd8acf 100644 --- a/hdbt.theme +++ b/hdbt.theme @@ -1519,7 +1519,9 @@ function hdbt_preprocess_paragraph__event_list(&$variables) { $eventUrl = $linkedEvents->getEventsRequest($params, $settings['field_event_count']); $settings['events_api_url'] = $eventUrl; $settings['request_url'] = $eventUrl; - $settings['places'] = $linkedEvents->getPlaceslist($eventUrl); + if ($paragraph->get('field_event_location')->first()->getValue()['value']) { + $settings['places'] = $linkedEvents->getPlaceslist($eventUrl); + } } $booleanFields = [