Project

General

Profile

Actions

Bug #92471

closed

condition contentObject["pid"] not working in variant

Added by Grégory Duchesnes about 4 years ago. Updated about 2 years ago.

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

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #86196: Centralize ExpressionLanguage Registration via APIClosedSusanne Moog2018-09-07

Actions
Actions #1

Updated by Grégory Duchesnes about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Grégory Duchesnes about 4 years ago

Found a workaround if that can help someone :

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

Updated by Georg Ringer about 4 years 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?

Actions #5

Updated by Georg Ringer about 4 years ago

  • Status changed from Needs Feedback to Accepted
Actions #6

Updated by Gerrit Code Review about 4 years 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

Actions #7

Updated by Gerrit Code Review about 4 years 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

Actions #8

Updated by Gerrit Code Review about 4 years 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

Actions #9

Updated by Gerrit Code Review almost 4 years ago

Patch set 4 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

Actions #10

Updated by Gerrit Code Review over 3 years ago

Patch set 5 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

Actions #11

Updated by Christian Kuhn over 3 years ago

  • Related to Task #86196: Centralize ExpressionLanguage Registration via API added
Actions #12

Updated by Gerrit Code Review over 3 years ago

Patch set 6 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

Actions #13

Updated by Björn Jacob over 3 years ago

  • TYPO3 Version changed from 10 to 11
  • Sprint Focus set to Remote Sprint
Actions #14

Updated by Gerrit Code Review about 3 years ago

Patch set 7 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

Actions #15

Updated by Gerrit Code Review about 3 years ago

Patch set 8 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

Actions #16

Updated by Gerrit Code Review almost 3 years ago

Patch set 9 for branch main 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

Actions #17

Updated by Gerrit Code Review over 2 years ago

Patch set 10 for branch main 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

Actions #18

Updated by Gerrit Code Review over 2 years ago

Patch set 11 for branch main 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

Actions #19

Updated by Gerrit Code Review over 2 years ago

Patch set 12 for branch main 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

Actions #20

Updated by Gerrit Code Review over 2 years ago

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

Actions #21

Updated by Georg Ringer over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #22

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF