Issue Bug Closed

#97128option pid with ###PAGE_TSCONFIG_ID### and others on addRecord not working

Thorsten Born 03/07/22, 13:28 updated 10/04/22, 14:14

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###",

Reviews 2