Bug #75946

ExtensionManagementUtility won't insert fields in the right position if the position parameter is set

Added by Thomas Schlumberger over 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2016-04-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes() is being used to add custom fields to a table by using the 4th parameter
which defines the position the fields will be appended to the end of the "showitem" string nevertheless.

An example tca overrides looks like this:

$tempCols = [
    'myfield' => array(
        'label' => 'MYSUPERFIELD',
        'config' => array(
            'type' => 'input',
            'size' => '20',
            'eval' => 'trim'
        )
    ),
]

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempCols);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:title');


Related issues

Related to TYPO3 Core - Bug #75830: Better positionName extraction in ExtensionManagementUtility::executePositionedStringInsertionClosed2016-04-21

Actions
Has duplicate TYPO3 Core - Bug #76029: Regex in ExtensionManagementUtility::executePositionedStringInsertion is broken if you want to insert after a paletteRejected2016-05-03

Actions
Has duplicate TYPO3 Core - Bug #76046: After 7.6.6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes failsClosed2016-05-04

Actions
#1

Updated by Markus Klein over 4 years ago

  • Description updated (diff)
#2

Updated by Markus Klein over 4 years ago

  • Status changed from New to Needs Feedback

I use this API hundreds of times and I don't have any problems. Maybe some other ext is overriding your TCA again?
(check the order how extensions are loaded in the PackageStates.php)

#3

Updated by Gerrit Code Review over 4 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#4

Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#5

Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#6

Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#7

Updated by Gerrit Code Review over 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#8

Updated by Gerrit Code Review over 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#9

Updated by Gerrit Code Review over 4 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#10

Updated by Gerrit Code Review over 4 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#11

Updated by Oliver Hader over 4 years ago

  • Target version set to next-patchlevel
  • Is Regression changed from No to Yes
#12

Updated by Oliver Hader over 4 years ago

  • TYPO3 Version changed from 7 to 6.2
#13

Updated by Oliver Hader over 4 years ago

  • TYPO3 Version changed from 6.2 to 7
#14

Updated by Gerrit Code Review over 4 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

#15

Updated by Gerrit Code Review over 4 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47952

#16

Updated by Thomas Schlumberger over 4 years ago

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

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF