* Fixed bug that page tree didn't unfold when entering page id in the shortcut frame.
authorKasper Skårhøj <kasper@typo3.org>
Tue, 23 Mar 2004 10:41:03 +0000 (10:41 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Tue, 23 Mar 2004 10:41:03 +0000 (10:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@146 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_page.php
typo3/alt_shortcut.php

index 618a09b..e31e074 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-03-23  Kasper Skårhøj,,,  <kasper@typo3.com>
 
+       * Fixed bug that page tree didn't unfold when entering page id in the shortcut frame.
+
+2004-03-23  Kasper Skårhøj,,,  <kasper@typo3.com>
+
        * Added a checkbox for be-users to disable IP locking. This is useful if you have backend users complaining about being thrown off sessions.
 
 [RC2 note:
index a402719..2e424ea 100755 (executable)
@@ -359,7 +359,7 @@ class t3lib_pageSelect {
         * @see tslib_fe::getPageAndRootline()
         */
        function getRootLine($uid, $MP='')      {
-               $selFields = t3lib_div::uniqueList('pid,uid,title,nav_title,media,layout,hidden,starttime,endtime,fe_group,extendToSubpages,doktype,TSconfig,storage_pid,is_siteroot,mount_pid,'.$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']);
+               $selFields = t3lib_div::uniqueList('pid,uid,title,alias,nav_title,media,layout,hidden,starttime,endtime,fe_group,extendToSubpages,doktype,TSconfig,storage_pid,is_siteroot,mount_pid,'.$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']);
 
                        // Splitting the $MP parameters if present
                $MPA = array();
index 919f130..f16c598 100755 (executable)
@@ -408,7 +408,7 @@ class SC_alt_shortcut {
                global $BE_USER,$LANG;
 
                if (!t3lib_extMgm::isLoaded('cms'))     return;
-       
+
                        // EDIT page:
                $this->editPage = trim(strtolower($this->editPage));
                $this->editError='';
@@ -428,7 +428,7 @@ class SC_alt_shortcut {
                                unset($this->theEditRec);
                                $this->editError=$LANG->getLL('shortcut_notEditable');
                        } elseif(!$BE_USER->getTSConfigVal('options.shortcut_onEditId_dontSetPageTree')) {
-                               $expandedPages=unserialize($BE_USER->uc['browsePages']);
+                               $expandedPages=unserialize($BE_USER->uc['browseTrees']['browsePages']);
                                if (!$BE_USER->getTSConfigVal('options.shortcut_onEditId_keepExistingExpanded'))        $expandedPages=array(); 
                                $rL=t3lib_BEfunc::BEgetRootLine($this->theEditRec['pid']);
                                reset($rL);
@@ -436,7 +436,7 @@ class SC_alt_shortcut {
                                        $expandedPages[0][$rLDat['uid']]=1;
                //                      debug($rLDat['uid']);
                                }
-                               $BE_USER->uc['browsePages'] = serialize($expandedPages);
+                               $BE_USER->uc['browseTrees']['browsePages'] = serialize($expandedPages);
                                $BE_USER->writeUC();
                        }
                }
@@ -551,4 +551,4 @@ $SOBE->preprocess();
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-?>
\ No newline at end of file
+?>