Commit 9a369f902d11acbc8d3972fa4a4412ac8e1c577a
1 parent
f34bd11c
Added FIXME for folder permission check bug.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2899 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
| @@ -74,12 +74,13 @@ if (checkSession()) { | @@ -74,12 +74,13 @@ if (checkSession()) { | ||
| 74 | $oContent = new PatternCustom(); | 74 | $oContent = new PatternCustom(); |
| 75 | $aResults = $oBrowser->browse(); | 75 | $aResults = $oBrowser->browse(); |
| 76 | if (($fBrowseType == "folder") && (!isset($fFolderID))) { | 76 | if (($fBrowseType == "folder") && (!isset($fFolderID))) { |
| 77 | + // FIXME: check that the first folder in the array exists, no permission otherwise | ||
| 77 | controllerRedirect("browse", "fFolderID=" . $aResults["folders"][0]->getID()); | 78 | controllerRedirect("browse", "fFolderID=" . $aResults["folders"][0]->getID()); |
| 78 | } | 79 | } |
| 79 | 80 | ||
| 80 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 81 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 81 | // display the browse results | 82 | // display the browse results |
| 82 | - $oContent->addHtml(renderPage($aResults, $fBrowseType, $fSortBy, $fSortDirection)); | 83 | + $oContent->addHtml(renderPage($aResults, $fBrowseType, $fSortBy, $fSortDirection)); |
| 83 | $main->setCentralPayload($oContent); | 84 | $main->setCentralPayload($oContent); |
| 84 | $main->setFormAction($_SERVER["PHP_SELF"]); | 85 | $main->setFormAction($_SERVER["PHP_SELF"]); |
| 85 | $main->setSubmitMethod("GET"); | 86 | $main->setSubmitMethod("GET"); |