[BUGFIX] Upgrade linkhandler syntax to new link syntax 64/58964/6
authorJohannes Kasberger <johannes.kasberger@reelworx.at>
Tue, 27 Nov 2018 16:24:56 +0000 (17:24 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 6 Dec 2018 13:55:56 +0000 (14:55 +0100)
commit4766a6f969b1ca4e65fbb620bab59b521ba99b02
tree7f1559ca6041aa1eb9856b4923b761f6f11f66b5
parent7a1b9b61ca8153c7e2b8e352619236a2101b67ec
[BUGFIX] Upgrade linkhandler syntax to new link syntax

The \TYPO3\CMS\Core\LinkHandling\RecordLinkHandler::asString method
expects the parameters to hold the identifier and uid as top-level
array elements.
The legacy syntax converter now ensures that this nesting is correct.

Besides that we now also upgrade the very old linkhandler syntax
with no identifier.

Therefore we accept
 - record:<identifier>:<table>:<uid>
 - record:<table>:<uid>

Resolves: #80806
Releases: master, 8.7
Change-Id: I01c3d525de43a56d610dc882ef406de631a8762e
Reviewed-on: https://review.typo3.org/58964
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Tests/Unit/LinkHandling/LegacyLinkNotationConverterTest.php