Skip to content
Snippets Groups Projects
Commit 65990a5b authored by Georg Ringer's avatar Georg Ringer Committed by Daniel Goerz
Browse files

[BUGFIX] Handle missing TSFE gracefully in TS conditions

A condition like [getTSFE().id == 1] is evaluated in BE as well
and logged an error 'Unable to get a property on a non-object'.

This patch ensures that conditions based on getTSFE() are
treated gracefully and are evaluated to false.

Resolves: #87021
Releases: master, 9.5
Change-Id: If56a8b7bd66b9f7e66bdc8ce5f56c8df890cf655
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59129


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent 3fdb1704
Branches
Tags
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