Actions
Bug #75514
closedDisplay Condition in TCA
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
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“):
- Unlock the field for the editor in the access-list
- hide the field in the TCA ‚displayCond‘ $GLOBALS['TCA']['tt_content']['columns']['colPos']['displayCond'] = 'HIDE_FOR_NON_ADMINS';
- 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
Actions