[BUGFIX] Field pageIdSelector in RTE link popup is visible when enabled 03/46903/2
authorFranz Kugelmann <franz.kugelmann@elementare-teilchen.de>
Wed, 3 Feb 2016 13:53:55 +0000 (14:53 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 26 Feb 2016 07:31:51 +0000 (08:31 +0100)
When pageIdSelector is configured to be enabled,
a new key is added to $fieldDefinitions.
But it has no effect as long as this key is not set additionally in
$this->linkAttributes.
This patch adds this missing piece.

Resolves: #73090
Releases: master, 7.6
Change-Id: I86f83bc3292144e06c7fcc179469c715c80dcb16
Reviewed-on: https://review.typo3.org/46903
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php

index 13405d4..f2ff566 100644 (file)
@@ -316,6 +316,7 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
     {
         $configuration = $this->linkBrowser->getConfiguration();
         if (!empty($configuration['pageIdSelector.']['enabled'])) {
+            array_push($this->linkAttributes, 'pageIdSelector');
             $fieldDefinitions['pageIdSelector'] = '
                                <tr>
                                        <td>