diff --git a/public/legacy/include/SugarFolders/SugarFolders.php b/public/legacy/include/SugarFolders/SugarFolders.php index 055f9e3f2c..4a4e06b786 100755 --- a/public/legacy/include/SugarFolders/SugarFolders.php +++ b/public/legacy/include/SugarFolders/SugarFolders.php @@ -911,7 +911,18 @@ public function getFoldersForSettings($focusUser = null) return $ret; } + private function getChildFolders($folders, $parentId) + { + $children = array(); + foreach ($folders as $folder) { + if ($folder['parent_folder'] === $parentId) { + $children[] = $folder; + } + } + + return $children; + } /** * Remove folders of deleted inbounds *