[BUGFIX] Upgrade linkhandler syntax to new link syntax 46/59046/2
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 16:30:06 +0000 (17:30 +0100)
commitf2be991ba61a891b33c844f626f702160e14247a
tree0a77493b2f436f7bb34f6c5a266d434a0881a87e
parente3a786d6e586eb25f4cc6e443d3b6446db4ebe1c
[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/59046
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
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