Actions
Bug #88456
closedCreating a record with read-only fields loses their default values
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-05-29
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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
Actions