[BUGFIX] Use params set in db in recordLinkHandler 70/57370/5
authorSusanne Moog <susanne.moog@typo3.org>
Mon, 25 Jun 2018 18:39:31 +0000 (20:39 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 13 Aug 2018 10:08:05 +0000 (12:08 +0200)
commitf52e3a367c3f3f71bfaef9d1e602498e84aca646
tree0b576005216120829b195948609494e5d22c487f
parent059c720d4bee7aa7cd5b7c318ba9bebc49890564
[BUGFIX] Use params set in db in recordLinkHandler

Resolving of links with a custom record link handler is now done
in the following order:

- TypoScriptConfiguration Parameters
- Parameters set in link field in content element
- If param is empty in link field but set in config that is taken into
account as a fallback
- It is _not_ possible to unset a value (class, title, target, link) in
the link field if it _is_ set to a default value in TypoScript

Caveat: Overwriting attributes only works if they are set via parameter
in configuration _not_ if they are set via ATagParams.

Resolves: #81620
Releases: master, 8.7
Change-Id: Ie723e7d7d36a03bac4ec97211749317d7311dd3e
Reviewed-on: https://review.typo3.org/57370
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Ralf Merz <mail@merzilla.de>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Marc Hirdes <hirdes@clickstorm.de>
Reviewed-by: Maik Peuser <maik.peuser@verdure.de>
Reviewed-by: Tim Schreiner <schreiner.tim@gmail.com>
Tested-by: Tim Schreiner <schreiner.tim@gmail.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php
typo3/sysext/frontend/Tests/TYPO3/CMS/Frontend/Tests/Unit/Typolink/DatabaseRecordLinkBuilderTest.php [new file with mode: 0644]