Project

General

Profile

Actions

Bug #97128

closed

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

Added by Thorsten Born about 2 years ago. Updated over 1 year 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 #1

Updated by Oliver Bartsch about 2 years ago

  • Related to Task #95001: Move pid resolviing in AddRecord to own method added
Actions #2

Updated by Gerrit Code Review about 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Oliver Bartsch about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF