Project

General

Profile

Actions

Bug #75514

closed

Display Condition in TCA

Added by Marvin Dettinger about 8 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Start date:
2016-04-11
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
TCA
Complexity:
medium
Is Regression:
No
Sprint Focus:

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“):

  1. Unlock the field for the editor in the access-list
  2. hide the field in the TCA ‚displayCond‘ $GLOBALS['TCA']['tt_content']['columns']['colPos']['displayCond'] = 'HIDE_FOR_NON_ADMINS';
  3. 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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #88456: Creating a record with read-only fields loses their default valuesClosed2019-05-29

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 #1

Updated by Benni Mack almost 8 years ago

  • Target version changed from 7.6.5 to Candidate for patchlevel
Actions #2

Updated by Riccardo De Contardi over 6 years ago

  • Category set to FormEngine aka TCEforms
Actions #3

Updated by Markus Mächler about 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.

Actions #4

Updated by Georg Ringer about 4 years ago

  • Related to Bug #88456: Creating a record with read-only fields loses their default values added
Actions #5

Updated by Loek Hilgersom over 3 years ago

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

Updated by Gerrit Code Review over 3 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 #7

Updated by Gerrit Code Review over 3 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 #8

Updated by Gerrit Code Review over 3 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 #9

Updated by Gerrit Code Review over 3 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 #10

Updated by Gerrit Code Review over 3 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 #11

Updated by Gerrit Code Review over 3 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 #12

Updated by Oliver Bartsch over 3 years ago

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

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF