Commit 9468fdf4a0d38e695a50f0feb25a7d63dea42ecd

Authored by Megan Watson
1 parent 4daef597

Corrected the folder id, it was empty

PT: 1675896
Jira: KTS-4444

Committed by: Megan Watson
plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php
... ... @@ -337,6 +337,18 @@ class MyDropDocumentsPage extends KTStandardDispatcher {
337 337 }
338 338 }
339 339  
  340 + $subFolders = Folder::getByParentId($iDropDocsFolderID);
  341 + if(PEAR::isError($subFolders) || empty($subFolders)){
  342 + $iMyDocsFolderID = $iDropDocsFolderID;
  343 + }else{
  344 + foreach ($subFolders as $sub){
  345 + if($sub->getName() == $sUserName){
  346 + $iMyDocsFolderID = $sub->getID();
  347 + break;
  348 + }
  349 + }
  350 + }
  351 +
340 352 $location = 'browse.php?fFolderId='.$iMyDocsFolderID;
341 353 $sReturnTable .= '</tbody>'.
342 354 '</table>'.
... ...