#60847displayCond depending on type=select
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.