Skip to content
Snippets Groups Projects
Commit 6e69904b authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[BUGFIX] Correctly evaluate PageTS in TemplateModule

Set the current page id early, so that PageTS is fetched
from the correct page instead of id 0.

Releases: 9.5, master
Resolves: #91445
Change-Id: I95a50b6c9d45be54291f27828d9f35cb62b3b4dd
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64553


Reviewed-by: Daniel Siepmann's avatarDaniel Siepmann <coding@daniel-siepmann.de>
Reviewed-by: Thomas Hohn
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarHelmut Hummel <typo3@helhum.io>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarHelmut Hummel <typo3@helhum.io>
parent 98644c6e
Branches
Tags
No related merge requests found
......@@ -192,11 +192,11 @@ class TypoScriptTemplateModuleController
public function mainAction(ServerRequestInterface $request): ResponseInterface
{
$this->request = $request;
$this->id = (int)($request->getParsedBody()['id'] ?? $request->getQueryParams()['id'] ?? 0);
$changedMenuSettings = $request->getParsedBody()['SET'] ?? $request->getQueryParams()['SET'] ?? [];
$this->menuConfig($changedMenuSettings);
// Loads $this->extClassConf with the configuration for the CURRENT function of the menu.
$this->extClassConf = $this->getExternalItemConfig('web_ts', 'function', $this->MOD_SETTINGS['function']);
$this->id = (int)($request->getParsedBody()['id'] ?? $request->getQueryParams()['id'] ?? 0);
$this->perms_clause = $this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW);
// Checking for first level external objects
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment