[BUGFIX] Fix adding fields to an existing table in a specific position 35/47935/10
authorThomas Schlumberger <thomas@b13.de>
Wed, 27 Apr 2016 12:05:13 +0000 (14:05 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 28 Apr 2016 12:18:47 +0000 (14:18 +0200)
commit9ec641257d374269a971e1ac3f005cb2b7c2bf45
tree2ec7c41c0b8f21a4dc4a89e6bc9ca29a192db59a
parent831c2dee91b2656a44dd45e278b090992357f896
[BUGFIX] Fix adding fields to an existing table in a specific position

When trying to add new fields at a specific position to an existing
table (e.g. "after:title") and the field referenced in the position is
part of a palette the regular expression to insert the new fields did
not work.

This happened because a regular expression part was inserted in the
pallete string to replace and being quoted afterwards. That caused the
preg_replace function to treat the regular expression as a string as it
has been escaped.

Resolves: #75946
Releases: master,7.6
Change-Id: Ib0dbcb56e530e1671470210218bd1c1205b50946
Reviewed-on: https://review.typo3.org/47935
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php