Project

General

Profile

Actions

Bug #92146

closed

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

Added by Dennis Prinse about 4 years ago. Updated over 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

Also available in: Atom PDF