diff --git a/lib/Controller/Schedule.php b/lib/Controller/Schedule.php index 182e32a29d..aa9bef7fdb 100644 --- a/lib/Controller/Schedule.php +++ b/lib/Controller/Schedule.php @@ -890,6 +890,7 @@ function editForm($eventId) 'commands' => $this->commandFactory->query(), 'dayParts' => $this->dayPartFactory->allWithSystem(), 'displayGroups' => $schedule->displayGroups, + 'campaign' => ($schedule->campaignId != '') ? $this->campaignFactory->getById($schedule->campaignId) : null, 'displayGroupIds' => array_map(function($element) { return $element->displayGroupId; }, $schedule->displayGroups), diff --git a/views/schedule-form-add.twig b/views/schedule-form-add.twig index 20c70192fd..7d0ce85785 100644 --- a/views/schedule-form-add.twig +++ b/views/schedule-form-add.twig @@ -90,7 +90,7 @@ {% set title %}{% trans "Layout / Campaign" %}{% endset %} {% set helpText %}{% trans "Please select a Layout or Campaign for this Event to show" %}{% endset %} - {{ forms.dropdown("campaignId", "single", title, "", null, "id", "value", helpText, "layout-control", "", "", "", attributes, optionGroups) }} + {{ forms.dropdown("campaignId", "single", title, "", null, "id", "value", helpText, "layout-control", "", "", "", attributes) }}