Project

General

Profile

Actions

Bug #70421

closed

displayCond IN operator doesn't work like documented

Added by Thomas Maroschik over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2015-10-05
Due date:
% Done:

100%

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

Description

In CMS < 7.5 it was possible to set up a displayCond against a select field and using the IN operator. For example 'displayCond' => 'FIELD:doktype:IN:20,24‘,

Currently this condition is always evaluated to false, because values of select fields are now handled as arrays by form engine.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #70265: DisplayCond based on array input failsClosedAnja Leichsenring2015-10-01

Actions
Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from In Progress 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 http://review.typo3.org/43837

Actions #2

Updated by Sebastian Iffland over 8 years ago

Thomas Maroschik wrote:

In CMS < 7.5 it was possible to set up a displayCond against a select field and using the IN operator. For example 'displayCond' => 'FIELD:doktype:IN:20,24‘,

Currently this condition is always evaluated to false, because values of select fields are now handled as arrays by form engine.

The greater than ('>') comparison seems to fail too, see field 'l10n_parent' (also type select) in any table. It appears even if language set to -1 [All] or 0 default.

Actions #3

Updated by Vladimir Falcon over 8 years ago

I confirm the error mentioned by Thomas.

l10n_parent Field is always visible regarding of the sys_language_uid.

'l10n_parent' => array(
            'displayCond' => 'FIELD:sys_language_uid:>:0',
            'exclude' => 1,
            'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
...

        ),
Actions #4

Updated by Thomas Maroschik over 8 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF