[BUGFIX] Check correct variable in BrowseLinksController 15/52215/2
authorChrister Vindberg <cvi@systime.dk>
Tue, 28 Mar 2017 07:10:31 +0000 (09:10 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 28 Mar 2017 12:09:44 +0000 (14:09 +0200)
Make sure to check the correct variable classesAnchorDefaultTitle
when fetching the title of anchors.

This affects CKeditor as well as htmlarea.

Resolves: #80209
Releases: master, 7.6
Change-Id: I1cdd760ee1fe2879ac53edff38f25515d656d706
Reviewed-on: https://review.typo3.org/52215
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/rtehtmlarea/Classes/Controller/BrowseLinksController.php

index e24fb95..63c2fd3 100644 (file)
@@ -503,7 +503,7 @@ class BrowseLinksController extends AbstractLinkBrowserController
         if ($this->linkAttributeValues['title']) {
             $title = $this->linkAttributeValues['title'];
         } else {
-            $title = !$this->classesAnchorDefault[$this->displayedLinkHandlerId] ? '' : $this->classesAnchorDefaultTitle[$this->displayedLinkHandlerId];
+            $title = $this->classesAnchorDefaultTitle[$this->displayedLinkHandlerId] ?: '';
         }
         if (isset($this->buttonConfig[$this->displayedLinkHandlerId . '.']['properties.']['title.']['readOnly'])) {
             $readOnly = (bool)$this->buttonConfig[$this->displayedLinkHandlerId . '.']['properties.']['title.']['readOnly'];