[BUGFIX] Fix adding fields to an existing table in a specific position 52/47952/2
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:19:15 +0000 (14:19 +0200)
commitf2be9ad6654034b3e1830ade5d9c575b09aa6bbd
tree879d4384ef3f3fb61565b35a9c6427fdbd67d018
parentebce9d2fad58ffa443d955203c11204de8d31607
[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/47952
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