SF Patch #3391389 - Option to initially open the tree

This commit is contained in:
Roland Gruber
2011-10-06 12:22:55 +11:00
committed by Deon George
parent 6c8b623788
commit 56830f1fa4
3 changed files with 16 additions and 2 deletions

View File

@@ -57,10 +57,17 @@ abstract class Tree {
if (is_null($server->getLogin(null)))
return $tree;
foreach ($server->getBaseDN(null) as $base)
if ($base)
foreach ($server->getBaseDN(null) as $base) {
if ($base) {
$tree->addEntry($base);
if ($server->getValue('appearance','open_tree')) {
$baseEntry = $tree->getEntry($base);
$baseEntry->open();
}
}
}
set_cached_item($server_id,'tree','null',$tree);
}