Bug #88456
closedCreating a record with read-only fields loses their default values
100%
Description
Assuming that tt.content.CType should not be changed by editors:
TCEFORM.tt_content.CType.config.readOnly = 1
With this configured, new content elements loose their CType setting after being saved.
Steps to reproduce:
- Set tt_content.CType as readOnly like explained above
- Create a new content element via element wizard and choose a CType which is not the 1st in the list
- This opens an edit form with the correct CType selected, but marked as read-only
- When hitting the save button, the CType info is lost and cannot be changed again.
Note: The "readOnly" option for TCA fields affects only the display. As the documentation mentions, it is still possible to write to those fields when using the DataHandler: https://docs.typo3.org/m/typo3/reference-tca/master/en-us/ColumnsConfig/Type/Select.html
Files
Updated by Michael Stucki over 5 years ago
Updated by Riccardo De Contardi over 5 years ago
- Category set to FormEngine aka TCEforms
This is still reproducible on 10.1.0-dev (latest master)
Updated by Georg Ringer almost 5 years ago
- Related to Bug #75514: Display Condition in TCA added
Updated by Loek Hilgersom over 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 over 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 over 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 over 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 over 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 over 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 over 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 over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c58d66a2273a69073e213a4db9d4216a71b4d1f5.