Skip to content

Commit

Permalink
fix: Ensure backend module is loadable when no page from the page tre…
Browse files Browse the repository at this point in the history
…e is selected
  • Loading branch information
tweis committed Oct 22, 2024
1 parent f8474af commit 5a99f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ protected function getModuleTemplateResponse(): ResponseInterface
return $this->htmlResponse($this->moduleTemplate->renderContent());
}

public function indexAction(int $id): ResponseInterface
public function indexAction(): ResponseInterface
{
$id = (int) ($this->request->getQueryParams()['id'] ?? 0);

if (!$this->settings['enabled']) {
return $this->forwardToErrorWithCannedMessage('disabled');
}
Expand Down

0 comments on commit 5a99f91

Please sign in to comment.