Project

General

Profile

Actions

Bug #75514

closed

Display Condition in TCA

Added by Marvin Dettinger over 8 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2016-04-11
Due date:
% Done:

100%

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

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #88456: Creating a record with read-only fields loses their default valuesClosed2019-05-29

Actions
Related to TYPO3 Core - Bug #92119: Hiding field colPos for backend users breaks normal content creation and moving content between columnsClosed2020-08-27

Actions
Actions

Also available in: Atom PDF