Bug #92146
closedPage drag and drop doesn't apply TCAdefaults for MM fields
100%
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.