[BUGFIX] No duplicate insertion in addToAllTCAtypes 83/27583/2
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Wed, 12 Feb 2014 15:25:05 +0000 (16:25 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 18 Feb 2014 21:33:39 +0000 (22:33 +0100)
commit6c973b87ac111c8af7eee01cbd77f32a8b9cb3cc
treec9ad4bc2de0ff544ac9314f9a2e4a640bec909b3
parentd4b2d2158aab71ed691e16085d1fa0a52d8290a2
[BUGFIX] No duplicate insertion in addToAllTCAtypes

This patch improves the regular expression in
ExtensionManagementUtility::executePositionedStringInsertion().

It is made sure that the field name ends with a comma or a line
ending to prevent duplicate insertions of the string when field
names start with the same substring.

Resolves: #55932
Releases: 6.2
Change-Id: I375c40760a38b7f939086bb851911bd7f52509ca
Reviewed-on: https://review.typo3.org/27583
Reviewed-by: Michiel Roos
Tested-by: Michiel Roos
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php