Project

General

Profile

Actions

Bug #92146

closed

Page drag and drop doesn't apply TCAdefaults for MM fields

Added by Dennis Prinse over 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2020-09-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using the page drag and drop to add new pages, the default TCA config or TCAdefaults in Page TSconfig and User TSconfig won't be applied.

In my case, I tried to set the default category using TCA using the following line in my TCA overrides. This was just to be sure the default category config is working in general.

$GLOBALS['TCA']['pages']['columns']['categories']['config']['default'] = 147;

Using the Create new wizard, this config is applied correctly. It's setting the database field to the given uid and is using the DataHandler to convert this MM relation to the MM foreign table. Using the page drag and drop, the category uid is set in the database. The problem seems to be that the DataHandler isn't used for converting the MM relation to the MM foreign table.

I've tested and debugged the same steps using the Page TSconfig and User TSconfig below and the same behaviour occurred. Using the Create new wizard, categories are applied correctly, using the page drag and drop doesn't seem to be working.

TCAdefaults.pages.categories = 147

The same bug occurres in TYPO3 v9 when using the page drag and drop. TYPO3 v8 works correctly though.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #89211: TCAdefaults.pages.hidden = 0 not working in TYPO3 9.5.9 and 10.1.0-dev using page tree drag & dropClosed2019-09-19

Actions
Actions #1

Updated by Dennis Prinse over 3 years ago

  • Subject changed from Page drop doesn't apply TCAdefaults on MM fields to Page drag and drop doesn't apply TCAdefaults for MM fields
Actions #2

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

Actions #3

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

Actions #4

Updated by Benni Mack almost 3 years ago

  • Related to Bug #89211: TCAdefaults.pages.hidden = 0 not working in TYPO3 9.5.9 and 10.1.0-dev using page tree drag & drop added
Actions #5

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

Actions #6

Updated by Benni Mack almost 3 years ago

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

Updated by Benni Mack almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF