Bug #75514
closedDisplay Condition in TCA
100%
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
Updated by Benni Mack over 8 years ago
- Target version changed from 7.6.5 to Candidate for patchlevel
Updated by Riccardo De Contardi about 7 years ago
- Category set to FormEngine aka TCEforms
Updated by Markus Mächler over 4 years ago
This is also a common issue using EXT:gridelements. The fields tx_gridelements_container and tx_gridelements_columns need to be present in the form, but should normally not be displayed for editors.
I think there should be a hide option for TCA fields, where fields are rendered to the HTML form, but hidden for editors.
Updated by Georg Ringer over 4 years ago
- Related to Bug #88456: Creating a record with read-only fields loses their default values added
Updated by Loek Hilgersom about 4 years ago
- Related to Bug #92119: Hiding field colPos for backend users breaks normal content creation and moving content between columns added
Updated by Gerrit Code Review about 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536
Updated by Gerrit Code Review about 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536
Updated by Gerrit Code Review about 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536
Updated by Gerrit Code Review about 4 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536
Updated by Gerrit Code Review about 4 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65536
Updated by Gerrit Code Review about 4 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/65569
Updated by Oliver Bartsch about 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c58d66a2273a69073e213a4db9d4216a71b4d1f5.