[TASK] TS path next to error msg in obj-browser 23/31623/4
authorPhilipp Kitzberger <philipp@cron-it.de>
Tue, 15 Jul 2014 08:15:42 +0000 (10:15 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 2 Dec 2014 23:46:03 +0000 (00:46 +0100)
This outputs the TS path next to the error message in the object browser
when clicking on a node in the TS tree and not having a TS record on that
page.

Resolves: #60322
Releases: master, 6.2
Change-Id: I5c4243de851cb906b16d94d1f6ce114b4c9174c8
Reviewed-on: http://review.typo3.org/31623
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php

index 8330e70..748a0ff 100644 (file)
@@ -327,6 +327,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS
                        } else {
                                $noTemplateMessage = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class, $GLOBALS['LANG']->getLL('noCurrentTemplate'), $GLOBALS['LANG']->getLL('edit'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR);
                                $this->addFlashMessage($noTemplateMessage);
+                               $theOutput .= htmlspecialchars($this->pObj->sObj) . ' = <strong>' . htmlspecialchars($theSetupValue) . '</strong>';
+                               $theOutput .= $this->pObj->doc->spacer(10);
                        }
                        // Links:
                        $out = '';