Bug #70421
closed
displayCond IN operator doesn't work like documented
Added by Thomas Maroschik over 8 years ago.
Updated over 5 years ago.
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.
- 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
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.
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',
...
),
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF