B2019-060: On procedure set import, could not import set with same (folder) name even though set had been deleted

This commit is contained in:
Kathy Ruffing 2019-04-22 14:41:28 +00:00
parent c30518c4fe
commit 9d6ff32926

View File

@ -934,6 +934,9 @@ namespace VEPROMS.CSLA.Library
throw new System.Security.SecurityException("User not authorized to remove a Folder"); throw new System.Security.SecurityException("User not authorized to remove a Folder");
try try
{ {
// B2019-060: On delete, remove the folder from cache:
Folder tmp = Folder.Get(folderID);
tmp.RemoveFromDictionaries();
DataPortal.Delete(new PKCriteria(folderID)); DataPortal.Delete(new PKCriteria(folderID));
} }
catch (Exception ex) catch (Exception ex)