Bug #75514

Display Condition in TCA

Added by Marvin Dettinger over 3 years ago. Updated almost 2 years ago.

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

0%

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

History

#1 Updated by Benni Mack about 3 years ago

  • Target version changed from 7.6.5 to Candidate for patchlevel

#2 Updated by Riccardo De Contardi almost 2 years ago

  • Category set to FormEngine aka TCEforms

Also available in: Atom PDF