Commit 5a5c20895c804239432b8059be4d4428d2d54fca
1 parent
2b2fc5c4
If $default->browseToRoot is set, go to the root of the tree, rather
than the user's unit. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3271 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| ... | ... | @@ -103,7 +103,11 @@ $oContent = new PatternCustom(); |
| 103 | 103 | $aResults = $oBrowser->browse(); |
| 104 | 104 | if (($fBrowseType == "folder") && (!isset($fFolderID))) { |
| 105 | 105 | // FIXME: check that the first folder in the array exists, no permission otherwise |
| 106 | - controllerRedirect("browse", "fFolderID=" . $aResults["folders"][0]->getID()); | |
| 106 | + if ($default->browseToRoot) { | |
| 107 | + controllerRedirect("browse", "fFolderID=1"); | |
| 108 | + } else { | |
| 109 | + controllerRedirect("browse", "fFolderID=" . $aResults["folders"][0]->getID()); | |
| 110 | + } | |
| 107 | 111 | } |
| 108 | 112 | |
| 109 | 113 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ... | ... |