Project

General

Profile

Actions

Bug #60847

closed

displayCond depending on type=select

Added by Anonymous over 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-08-07
Due date:
% Done:

0%

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

Description

In my TCA I tried to add some displayCond to a field depending on a field that is of type "select":

$GLOBALS['TCA']['fe_users']['columns']['myNewField']['displayCond'] = 'FIELD:usergroup:=:2';

As it turns out displayCond does NOT work with the raw record (with usergroup="2") but with a version that's been rendered by the DataPreprocessor: usergroup="2|Name%20of%20my%20Usergroup".

Of course this is not as one would expect. A displayCond like

FIELD:usergroup:=:2|Name%20of%20my%20Usergroup

is not nice but does the job. Anyway it'll be more consistent with all other fields if the displayCond was applied to the raw data and not enforce such squabbling. Plus it'll be more consistent to renaming user records.

Actions

Also available in: Atom PDF