diff --git a/application/forms/Jobs/JobConfigForm.php b/application/forms/Jobs/JobConfigForm.php index 81355bb4..8b46773d 100644 --- a/application/forms/Jobs/JobConfigForm.php +++ b/application/forms/Jobs/JobConfigForm.php @@ -45,6 +45,7 @@ public function hasBeenSubmitted(): bool } $button = $this->getPressedSubmitElement(); + return $button && ($button->getName() === 'btn_submit' || $button->getName() === 'btn_remove'); } diff --git a/application/forms/Jobs/ScheduleForm.php b/application/forms/Jobs/ScheduleForm.php index ea74dcd1..3903e2a3 100644 --- a/application/forms/Jobs/ScheduleForm.php +++ b/application/forms/Jobs/ScheduleForm.php @@ -69,6 +69,7 @@ public function getPartUpdates(): array { /** @var RequestInterface $request */ $request = $this->getRequest(); + return $this->scheduleElement->prepareMultipartUpdate($request); } @@ -79,6 +80,7 @@ public function hasBeenSubmitted(): bool } $button = $this->getPressedSubmitElement(); + return $button && ($button->getName() === 'submit' || $button->getName() === 'btn_remove'); }