Fixed bug #14052: cache_treelist is out of date after setting hidden=0
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 12 May 2010 08:26:40 +0000 (08:26 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Wed, 12 May 2010 08:26:40 +0000 (08:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7579 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/hooks/class.tx_cms_treelistcacheupdate.php

index 5ff1be7..facb5ab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-12  Dmitry Dulepov  <dmitry.dulepov@gmail.com>
+
+       * Fixed bug #14052: cache_treelist is out of date after setting hidden=0
+
 2010-05-10  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9455: RTE incorrectly modifies external links and causes problems with subdomains
index 1876ede..9aa8f02 100644 (file)
@@ -395,18 +395,10 @@ class tx_cms_treelistCacheUpdate {
                                switch ($updatedFieldName) {
                                        case 'pid':
                                                        // page moved
-                                               $actions['allParents']    = true;
-                                               $actions['uidInTreelist'] = true;
-                                               break;
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['disabled']:
-                                       case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['fe_group']:
+                                                       // page hidden / unhidden
                                        case $GLOBALS['TCA']['pages']['ctrl']['delete']:
-                                       case 'extendToSubpages':
-                                       case 'php_tree_stop':
-                                                       // page hidden / unhidden / deleted / extendToSubpages set
-                                                       // php_tree_stop and/or FE groups set
-                                               $actions['uidInTreelist'] = true;
-                                               break;
+                                                       // page deleted / undeleted
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['starttime']:
                                                        /*
                                                         start time set/unset
@@ -416,6 +408,13 @@ class tx_cms_treelistCacheUpdate {
                                                         treelist. When unsetting the start time it must
                                                         become listed in the tree list again.
                                                        */
+                                       case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['fe_group']:
+                                                       // changes to FE user group
+                                       case 'extendToSubpages':
+                                                       // extendToSubpages set (apply FE access restrictions to subpages)
+                                       case 'php_tree_stop':
+                                                       // php_tree_stop
+                                               $actions['allParents'] = TRUE;
                                                $actions['uidInTreelist'] = true;
                                                break;
                                        case $GLOBALS['TCA']['pages']['ctrl']['enablecolumns']['endtime']: