Fixed bug #14128: Tree list cache does not recognize 'this' for 'pidInList'
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 19 Apr 2010 07:58:55 +0000 (07:58 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 19 Apr 2010 07:58:55 +0000 (07:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7384 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index f90233a..5499fb4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,13 @@
+2010-04-19  Dmitry Dulepov  <dmitry.dulepov@gmail.com>
+
+       * Fixed bug #14128: Tree list cache does not recognize 'this' for 'pidInList'
+
 2010-04-16  Susanne Moog <typo3@susanne-moog.de>
 
        * Fixed bug #13630: Status Report reports "Install Tool: disabled" when it is not. (thanks to Gregor Hermens)
        * Fixed bug #13941: Deleting pages should check language permissions (thanks to Tolleiv Nietsch) 
        
-2010-04-16  Francois Suter  <francois@typo3.org>
+2010-04-16 Francois Suter <francois@typo3.org>
 
        * Fixed bug #14090: In Extension Manager importExtInfo() does not sort versions correctly (thanks to Daniel Minder and Steffen Gebert)
 
index 8e71d8b..0e6f2c4 100644 (file)
@@ -7641,6 +7641,9 @@ class tslib_cObj {
                        $conf['recursive'] = intval($conf['recursive']);
                        if ($conf['recursive'] > 0) {
                                foreach (explode(',', $conf['pidInList']) as $value) {
+                                       if ($value === 'this') {
+                                               $value = $GLOBALS['TSFE']->id;
+                                       }
                                        $pidList .= $value . ',' . $this->getTreeList($value, $conf['recursive']);
                                }
                                $conf['pidInList'] = trim($pidList, ',');