B2024-067 Deleting Folders through Admin Tools missing some folders

This commit is contained in:
Matthew Schill 2024-12-05 15:27:46 -05:00
parent 61e8bc5ffa
commit a223dfd463

View File

@ -178,6 +178,8 @@ namespace VEPROMS
myDocVersions.Clear();
FolderInfo fi = FolderInfo.GetTop();
fi.RefreshChildFolders();
if (fi.ChildFolderCount > 0)
{
TreeNode tn = new TreeNode(fi.Name);
@ -233,7 +235,7 @@ namespace VEPROMS
loadedWorkingDraft = true;
}
if (tn.Parent != null && !loadedWorkingDraft)
if (tn.Parent != null && !loadedWorkingDraft && fi.FolderDocVersionCount == 0)
{
tn.Remove();
}