Bug #92471

condition contentObject["pid"] not working in variant

Added by Grégory Duchesnes 25 days ago. Updated 20 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2020-10-02
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 and Form 10.4.9, using the following variants


        variants:
          -
            identifier: hide-benefs
            condition: 'contentObject["pid"] in [36]'
            renderingOptions:
              enabled: false

results in

(1/1) Symfony\Component\ExpressionLanguage\SyntaxError

Variable "contentObject" is not valid around position 1 for expression `contentObject["pid"] in [36]`.

other conditions work

History

#1 Updated by Grégory Duchesnes 25 days ago

  • Description updated (diff)

#2 Updated by Grégory Duchesnes 24 days ago

Found a workaround if that can help someone :

condition: 'getTSFE().page["uid"] in [36]'

#3 Updated by Georg Ringer 22 days ago

  • Status changed from New to Needs Feedback

Thanks for creating the issue. Can you tell me where you get the information that this condition would actually work?

#5 Updated by Georg Ringer 21 days ago

  • Status changed from Needs Feedback to Accepted

#6 Updated by Gerrit Code Review 21 days ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66054

#7 Updated by Gerrit Code Review 21 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66054

#8 Updated by Gerrit Code Review 20 days ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66054

Also available in: Atom PDF