Issue Bug Closed

#92471condition contentObject["pid"] not working in variant

Grégory Duchesnes 10/02/20, 12:52 updated 10/04/22, 14:12

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

Reviews 2