Bug #97128
closedoption pid with ###PAGE_TSCONFIG_ID### and others on addRecord not working
100%
Description
Using pid as an option in TCA for addRecord does not work.
In typo3/sysext/backend/Classes/Form/FieldControl/AddRecord.php a possibly existing ts config reference like ###PAGE_TSCONFIG_ID### is converted into a number by casting to int.
Only ###SITEROOT### is used directly and converted to the correct integer there.
Casting to integer was added with https://forge.typo3.org/issues/95001.
The use of the ### notation in the resulting URL would be correct, as the AddController takes over the resolution of the ### parameter.
'fieldControl' => [ 'addRecord' => [ 'disabled' => false, 'options' => [ 'pid' => "###PAGE_TSCONFIG_ID###",
Updated by Oliver Bartsch over 2 years ago
- Related to Task #95001: Move pid resolviing in AddRecord to own method added
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73837
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73837
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73787
Updated by Oliver Bartsch over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ee2a954911c2415eb847d0dff24ade035bd34d4f.