Skip to content

Commit aa74a5e

Browse files
ScheduleController: Always add title for modal
Otherwise, as soon as the modal form triggers an auto-submit, the title is changed to the default title (`Icinga Web`).
1 parent ede7734 commit aa74a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/controllers/ScheduleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public function addAction(): void
112112
public function addRotationAction(): void
113113
{
114114
$scheduleId = (int) $this->params->getRequired('schedule');
115+
$this->setTitle($this->translate('Add Rotation'));
115116

116117
$form = new RotationConfigForm($scheduleId, Database::get());
117118
$form->setAction($this->getRequest()->getUrl()->setParam('showCompact')->getAbsoluteUrl());
@@ -136,7 +137,6 @@ public function addRotationAction(): void
136137
$form->handleRequest($this->getServerRequest());
137138

138139
if (empty($this->parts)) {
139-
$this->setTitle($this->translate('Add Rotation'));
140140
$this->addContent($form);
141141
}
142142
}

0 commit comments

Comments
 (0)