Project

General

Profile

Actions

Bug #97128

closed

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

Added by Thorsten Born over 2 years ago. Updated about 2 years ago.

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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #95001: Move pid resolviing in AddRecord to own methodClosed2021-08-26

Actions
Actions

Also available in: Atom PDF