Project

General

Profile

Actions

Bug #88456

closed

Creating a record with read-only fields loses their default values

Added by Michael Stucki almost 5 years ago. Updated over 3 years ago.

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:

  1. Set tt_content.CType as readOnly like explained above
  2. Create a new content element via element wizard and choose a CType which is not the 1st in the list
  3. This opens an edit form with the correct CType selected, but marked as read-only
  4. 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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #75514: Display Condition in TCAClosed2016-04-11

Actions
Related to TYPO3 Core - Bug #92119: Hiding field colPos for backend users breaks normal content creation and moving content between columnsClosed2020-08-27

Actions
Actions

Also available in: Atom PDF