Commit 99f100b1152de8fabe2b4d3b57bae5e513eaf425

Authored by Michael Joseph
1 parent fdf5d605

fixed bug- on first browse, folderID wasn't present on the querystring


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2052 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseBL.php
@@ -66,6 +66,9 @@ if (checkSession()) { @@ -66,6 +66,9 @@ if (checkSession()) {
66 $oContent = new PatternCustom(); 66 $oContent = new PatternCustom();
67 67
68 $aResults = $oBrowser->browse(); 68 $aResults = $oBrowser->browse();
  69 + if (($fBrowseType == "folder") && (!isset($fFolderID))) {
  70 + controllerRedirect("browse", "fFolderID=" . $aResults["folders"][0]->getID());
  71 + }
69 72
70 require_once("../../../webpageTemplate.inc"); 73 require_once("../../../webpageTemplate.inc");
71 // display the browse results 74 // display the browse results