Fixed bug #15375: showDomainNameWithTitle doesn't respect hidden records (Thanks...
authorSteffen Gebert <steffen.gebert@typo3.org>
Wed, 11 Aug 2010 19:48:11 +0000 (19:48 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Wed, 11 Aug 2010 19:48:11 +0000 (19:48 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8571 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_browsetree.php

index 04b0682..08a318d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-08-11  Steffen Gebert  <steffen@steffen-gebert.de>
 
+       * Fixed bug #15375: showDomainNameWithTitle doesn't respect hidden records (Thanks to Henrik Ziegenhain)
        * Fixed bug #15428: Element-Browser page tree has HTML / JS Errors (Thanks to Sven Juergens)
 
 2010-08-11  Christian Kuhn  <lolli@schwarzbu.ch>
index 5d1a333..1832e9c 100644 (file)
@@ -160,7 +160,7 @@ class t3lib_browseTree extends t3lib_treeView {
                $title = parent::getTitleStr($row,$titleLen);
                if (isset($row['is_siteroot']) && $row['is_siteroot'] != 0 && $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showDomainNameWithTitle')) {
                        $rows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('domainName,sorting', 'sys_domain',
-                                               'pid=' . $GLOBALS['TYPO3_DB']->quoteStr($row['uid'], 'sys_domain'), '', 'sorting', 1);
+                                               'pid=' . $GLOBALS['TYPO3_DB']->quoteStr($row['uid'] . t3lib_BEfunc::deleteClause('sys_domain') . t3lib_BEfunc::BEenableFields('sys_domain'), 'sys_domain'), '', 'sorting', 1);
                        if (is_array($rows) && count($rows) > 0) {
                                $title = sprintf('%s [%s]', $title, htmlspecialchars($rows[0]['domainName']));
                        }