[BUGFIX] Display RTE queryParametersSelector properly 57/45057/2
authorMarkus Klein <markus.klein@typo3.org>
Mon, 30 Nov 2015 11:27:38 +0000 (12:27 +0100)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 30 Nov 2015 12:16:11 +0000 (13:16 +0100)
Fix the wrong check for the configuration, which is 0 by default.

Resolves: #71980
Releases: master
Change-Id: I0726860cdc87bf6a5524c89ef52f44d9a891c9af
Reviewed-on: https://review.typo3.org/45057
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Eric Chavaillaz <eric@hemmer.ch>
Tested-by: Eric Chavaillaz <eric@hemmer.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/rtehtmlarea/Classes/Controller/BrowseLinksController.php

index 0b50cb9..751d760 100644 (file)
@@ -406,10 +406,7 @@ class BrowseLinksController extends AbstractLinkBrowserController
         $fieldRenderingDefinitions['class'] = $this->getClassField();
         $fieldRenderingDefinitions['target'] = $this->getTargetField();
         $fieldRenderingDefinitions['rel'] = $this->getRelField();
-        if (
-            isset($this->buttonConfig['queryParametersSelector.']['enabled'])
-            && !$this->buttonConfig['queryParametersSelector.']['enabled']
-        ) {
+        if (empty($this->buttonConfig['queryParametersSelector.']['enabled'])) {
             unset($fieldRenderingDefinitions['params']);
         }
         return $fieldRenderingDefinitions;