[BUGFIX] Use params set in db in recordLinkHandler 83/57883/2
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:20:18 +0000 (12:20 +0200)
commit09a0be52974364512a079b662986e8338d13fbfc
tree414f6fdc3b0ce177873cf8946d455056a54735e6
parent7b7cf6bc0e58a013be7f51a58462986a9a918fdb
[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/57883
Tested-by: TYPO3com <no-reply@typo3.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]