Project

General

Profile

Actions

Bug #88456

closed

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

Added by Michael Stucki about 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 #2

Updated by Riccardo De Contardi almost 5 years ago

  • Category set to FormEngine aka TCEforms

This is still reproducible on 10.1.0-dev (latest master)

Actions #3

Updated by Georg Ringer about 4 years ago

  • Related to Bug #75514: Display Condition in TCA added
Actions #4

Updated by Loek Hilgersom almost 4 years ago

  • Related to Bug #92119: Hiding field colPos for backend users breaks normal content creation and moving content between columns added
Actions #5

Updated by Gerrit Code Review almost 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

Actions #6

Updated by Gerrit Code Review almost 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

Actions #7

Updated by Gerrit Code Review almost 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

Actions #8

Updated by Gerrit Code Review almost 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

Actions #9

Updated by Gerrit Code Review almost 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

Actions #10

Updated by Gerrit Code Review almost 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

Actions #11

Updated by Oliver Bartsch almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF