diff --git a/browse.php b/browse.php index 595bd18..700f55f 100755 --- a/browse.php +++ b/browse.php @@ -334,10 +334,11 @@ class BrowseDispatcher extends KTStandardDispatcher { $aBreadcrumbs = array(); $folder_path_names = $oFolder->getPathArray(); $folder_path_ids = explode(',', $oFolder->getParentFolderIds()); + $folder_path_ids[] = $oFolder->getId(); if ($folder_path_ids[0] == 0) { - $folder_path_ids = array(); + array_shift($folder_path_ids); + array_shift($folder_path_names); } - $folder_path_ids[] = $oFolder->getId(); foreach (range(0, count($folder_path_ids) - 1) as $index) { $id = $folder_path_ids[$index]; diff --git a/plugins/ktcore/KTDocumentActions.php b/plugins/ktcore/KTDocumentActions.php index e38adc9..8247dbf 100644 --- a/plugins/ktcore/KTDocumentActions.php +++ b/plugins/ktcore/KTDocumentActions.php @@ -460,10 +460,11 @@ class KTDocumentMoveAction extends KTDocumentAction { $aBreadcrumbs = array(); $folder_path_names = $this->oFolder->getPathArray(); $folder_path_ids = explode(',', $this->oFolder->getParentFolderIds()); + $folder_path_ids[] = $this->oFolder->getId(); if ($folder_path_ids[0] == 0) { - $folder_path_ids = array(); + array_shift($folder_path_ids); + array_shift($folder_path_names); } - $folder_path_ids[] = $this->oFolder->getId(); foreach (range(0, count($folder_path_ids) - 1) as $index) { $id = $folder_path_ids[$index]; diff --git a/plugins/ktcore/admin/archivedDocuments.php b/plugins/ktcore/admin/archivedDocuments.php index c3c8497..7b83309 100755 --- a/plugins/ktcore/admin/archivedDocuments.php +++ b/plugins/ktcore/admin/archivedDocuments.php @@ -70,10 +70,11 @@ class ArchivedDocumentsDispatcher extends KTAdminDispatcher { $aBreadcrumbs = array(); $folder_path_names = $oFolder->getPathArray(); $folder_path_ids = explode(',', $oFolder->getParentFolderIds()); + $folder_path_ids[] = $oFolder->getId(); if ($folder_path_ids[0] == 0) { - $folder_path_ids = array(); + array_shift($folder_path_ids); + array_shift($folder_path_names); } - $folder_path_ids[] = $oFolder->getId(); foreach (range(0, count($folder_path_ids) - 1) as $index) { $id = $folder_path_ids[$index]; diff --git a/plugins/ktcore/admin/unitManagement.php b/plugins/ktcore/admin/unitManagement.php index dd36e06..2588239 100755 --- a/plugins/ktcore/admin/unitManagement.php +++ b/plugins/ktcore/admin/unitManagement.php @@ -72,11 +72,11 @@ class KTUnitAdminDispatcher extends KTAdminDispatcher { $aBreadcrumbs = array(); $folder_path_names = $oFolder->getPathArray(); $folder_path_ids = explode(',', $oFolder->getParentFolderIds()); + $folder_path_ids[] = $oFolder->getId(); if ($folder_path_ids[0] == 0) { - $folder_path_ids = array(); + array_shift($folder_path_ids); array_shift($folder_path_names); } - $folder_path_ids[] = $oFolder->getId(); foreach (range(0, count($folder_path_ids) - 1) as $index) { $id = $folder_path_ids[$index];