Project

General

Profile

Actions

Bug #86915

closed

Symfony Expression TypoScript conditions fail at nested arrays

Added by Lars Peter Søndergaard over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2018-11-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

conditions that try to access values of nested array do not yet work properly with the new symfony expression language.

Example

This works:

[request.getQueryParams()["foobar"] == "baz"]
    page.16 = TEXT
    page.16.value = FOOBAR
[END]

This does not:

[request.getQueryParams()["tx_news_pi1"]["action"] == "detail"]
    page.16 = TEXT
    page.16.value = FOOBAR
[END]

The condition passed to Resolver::evaluate turns out to be:

request.getQueryParams()["tx_news_pi1" 

in the latter case, presumably splitting at ][ due to old syntax (just a guess though).


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #87021: Using "getTSFE().beUserLogin == 1" as expression in an TypoScript condition leads to an error in the Symfony Expression LanguageClosed2018-11-28

Actions
Actions

Also available in: Atom PDF