Skip to content

Commit

Permalink
UHF-8070: UHF-8070: don't load places filter values when filter is no…
Browse files Browse the repository at this point in the history
…t applied.
  • Loading branch information
Jussiles committed Feb 13, 2023
1 parent 637e4c1 commit c124c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hdbt.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit c124c81

Please sign in to comment.