diff --git a/site/app/Interviews/InterviewInputs.php b/site/app/Interviews/InterviewInputs.php index e3e22cd5a..0406aafae 100644 --- a/site/app/Interviews/InterviewInputs.php +++ b/site/app/Interviews/InterviewInputs.php @@ -33,7 +33,7 @@ protected function createComponentInterview(): Form return $this->interviewFormFactory->create( function (): never { $this->flashMessage($this->interview ? 'Rozhovor upraven' : 'Rozhovor přidán'); - $this->redirect('Interviews:'); + $this->getPresenter()->redirect('Interviews:'); }, $this->interview, ); diff --git a/site/app/Talks/TalkInputs.php b/site/app/Talks/TalkInputs.php index 3b6bdbd80..7f0e86634 100644 --- a/site/app/Talks/TalkInputs.php +++ b/site/app/Talks/TalkInputs.php @@ -34,7 +34,7 @@ protected function createComponentTalk(): Form return $this->talkFormFactory->create( function (Html $message): never { $this->flashMessage($message); - $this->redirect('Talks:'); + $this->getPresenter()->redirect('Talks:'); }, $this->talk, ); diff --git a/site/app/Training/Dates/TrainingDateInputs.php b/site/app/Training/Dates/TrainingDateInputs.php index a99c5030d..1a85340b0 100644 --- a/site/app/Training/Dates/TrainingDateInputs.php +++ b/site/app/Training/Dates/TrainingDateInputs.php @@ -29,7 +29,7 @@ protected function createComponentDate(): Form { return $this->trainingDateFormFactory->create( function (): never { - $this->redirect('Trainings:'); + $this->getPresenter()->redirect('Trainings:'); }, function (): never { $this->flashMessage('Termín upraven');