Actions
Bug #97128
closedoption pid with ###PAGE_TSCONFIG_ID### and others on addRecord not working
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-03-07
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
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###",
Actions