[TASK] TS path next to error msg in obj-browser 63/34963/2
authorPhilipp Kitzberger <philipp@cron-it.de>
Tue, 15 Jul 2014 08:15:42 +0000 (10:15 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Tue, 2 Dec 2014 23:47:01 +0000 (00:47 +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/34963
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php

index a36cf5d..694f5a0 100644 (file)
@@ -335,6 +335,8 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS
                        } else {
                                $noTemplateMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $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 = '';