Issue Bug Closed

#75514Display Condition in TCA

Marvin Dettinger 04/11/16, 15:41 updated 09/08/20, 11:43

Description

We found the following issue while configuring the backend-editor:

The editor indirectly needs to edit multiple fields (e.g. ‚colPos‘ or ‚sys_language_uid‘) but they shouldn‘t be visible in the content element.
So we unlocked those fields in the Access-List and tried to hide the fields with the TCA-Display Condition „HIDE_FOR_NON_ADMINS“.
If we create a new record, the fields are hidden but when we save the record, the values are reset to default.

Steps to reproduce (Example with the field „colPos“):

  1. Unlock the field for the editor in the access-list
  2. hide the field in the TCA ‚displayCond‘ $GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘colPos’][‘displayCond’] = ‘HIDE_FOR_NON_ADMINS’;
  3. Create a new Record and save it

*Expected result:*
The record is saved with the correct value in the colPos field

*Actual result:*
The record is saved with the default value

Reviews 2