Add configurable target event list ID for event filter module
This commit is contained in:
@@ -27,10 +27,12 @@ class EventFilterController extends AbstractFrontendModuleController
|
||||
{
|
||||
$calendarIds = array_map('intval', StringUtil::deserialize($model->cal_calendar, true));
|
||||
$eventIds = $this->findUpcomingEventIds($calendarIds);
|
||||
$targetEventListId = trim((string) ($model->eventListDomId ?? ''));
|
||||
|
||||
$template->set('tagButtons', $this->findTagButtons($eventIds));
|
||||
$template->set('locations', $this->findLocations($eventIds));
|
||||
$template->set('organizations', $this->findOrganizations($eventIds));
|
||||
$template->set('targetEventListId', '' !== $targetEventListId ? $targetEventListId : 'eventlist');
|
||||
|
||||
return $template->getResponse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user