Actions
Bug #84266
closedDatabaseRecordLinkBuilder doesn't unset $conf['parameter']
Start date:
2018-03-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
typolink
Complexity:
Is Regression:
Sprint Focus:
Description
According to documentation, I should be able to configure the recordLink handler as follows:
config.recordLinks { tx_news { typolink { parameter = {$PID.newsPage} additionalParams.data = field:uid additionalParams.wrap = &id={$PID.newsPage}&tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]=| useCacheHash = 1 ATagParams.data = parameters:allParams target.data = parameters:target title.data = parameters:title extTarget = _blank extTarget.override.data = parameters:target } forceLink = 1 } }
This doesn't work since DatabaseRecordLinkBuilder also creates a parameter element in its config which, when merged with above configuration results in a parameter value that is an array instead of a string (which would be expected by typoLink).
In order to solve this, something has already been done in on line 64 by unsetting $conf['parameter.']. When unsetting $conf['parameter'] everything seems to be fine (I'll attach a patch file later).
Feel free to ask if anything is unclear.
Best Regards
Tizian
Files
Actions