mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
Update SugarFolders.php
forgot to add this function used in previous commit to show group folders properly for getFoldersForSettings modifications I did previously.
This commit is contained in:
parent
e706a19ca0
commit
9b974aed12
1 changed files with 11 additions and 0 deletions
|
@ -911,7 +911,18 @@ class SugarFolder
|
|||
|
||||
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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue