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.
Updated by Dennis Prinse about 4 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
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/+/68918
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/+/68918
Updated by Benni Mack over 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
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/+/68938
Updated by Benni Mack over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 10bcd26c93595ca9a60e07349800d0dbb8e534c5.