Commit 3e0ea9ab authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Fixed bug that page tree didn't unfold when entering page id in the shortcut frame.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@146 709f56b5-9817-0410-a4d7-c38de5d9e867
parent a49cd66b
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.
......
......@@ -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();
......
......@@ -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
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment