Skip to content
Snippets Groups Projects
Commit 3136ffd9 authored by Stanislas Rolland's avatar Stanislas Rolland Committed by Markus Klein
Browse files

[BUGFIX] Properly detect record link dialog tab

RecordLinkHandler->canHandleLink should check record identifier,
otherwise the element browser may open the wrong tab when multiple
record identifiers are configured.

Resolves: #82737
Releases: master, 8.7
Change-Id: Ie12c6d7484bdb51577dfe02a653e80fe1d7b63ea
Reviewed-on: https://review.typo3.org/54369


Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent 906684cb
Branches
Tags
No related merge requests found
......@@ -81,7 +81,7 @@ class RecordLinkHandler extends AbstractLinkHandler implements LinkHandlerInterf
*/
public function canHandleLink(array $linkParts): bool
{
if (!$linkParts['url'] || !isset($linkParts['url']['identifier'])) {
if (!$linkParts['url'] || !isset($linkParts['url']['identifier']) || $linkParts['url']['identifier'] !== $this->identifier) {
return false;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment