Nur in .: 3666.patch. diff -ur ../typo3_src-4.0-orig/t3lib/class.t3lib_treeview.php ./t3lib/class.t3lib_treeview.php --- ../typo3_src-4.0-orig/t3lib/class.t3lib_treeview.php 2006-06-13 16:06:45.599280676 +0200 +++ ./t3lib/class.t3lib_treeview.php 2006-06-13 16:21:24.256125685 +0200 @@ -770,6 +770,9 @@ // Accumulate the id of the element in the internal arrays $this->ids[]=$idH[$row['uid']]['uid'] = $row['uid']; $this->ids_hierarchy[$depth][] = $row['uid']; + + // Andreas Wolf, 13-06-2006 // attempt to fix bug ???? in T3-bugtracker + $this->orig_ids_hierarchy[$depth][] = $row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid']; // Make a recursive call to the next level $HTML_depthData = $depthData.'backPath,'gfx/ol/'.$LN.'.gif','width="18" height="16"').' alt="" />'; diff -ur ../typo3_src-4.0-orig/typo3/mod/web/perm/index.php ./typo3/mod/web/perm/index.php --- ../typo3_src-4.0-orig/typo3/mod/web/perm/index.php 2006-06-13 16:06:46.465221394 +0200 +++ ./typo3/mod/web/perm/index.php 2006-06-13 16:08:59.686101882 +0200 @@ -715,8 +715,8 @@ // Traverse the number of levels we want to allow recursive setting of permissions for: for ($a=$this->getLevels;$a>0;$a--) { - if (is_array($tree->ids_hierarchy[$a])) { - foreach($tree->ids_hierarchy[$a] as $theId) { + if (is_array($tree->orig_ids_hierarchy[$a])) { + foreach($tree->orig_ids_hierarchy[$a] as $theId) { if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->user['uid']==$tree->recs[$theId]['perms_userid']) { $theIdListArr[]=$theId; }