From 9468fdf4a0d38e695a50f0feb25a7d63dea42ecd Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Mon, 9 Nov 2009 13:29:53 +0200 Subject: [PATCH] Corrected the folder id, it was empty PT: 1675896 Jira: KTS-4444 --- plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php index b1a232a..99f18a1 100644 --- a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php +++ b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php @@ -337,6 +337,18 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } } + $subFolders = Folder::getByParentId($iDropDocsFolderID); + if(PEAR::isError($subFolders) || empty($subFolders)){ + $iMyDocsFolderID = $iDropDocsFolderID; + }else{ + foreach ($subFolders as $sub){ + if($sub->getName() == $sUserName){ + $iMyDocsFolderID = $sub->getID(); + break; + } + } + } + $location = 'browse.php?fFolderId='.$iMyDocsFolderID; $sReturnTable .= ''. ''. -- libgit2 0.21.4