From 3585273a08eeb76138281023fb90c7420694e9b2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 27 Sep 2022 14:53:35 -0400 Subject: [PATCH] Allowed creating different nested folder types Allowed creating different nested folder types --- .../Modules/ResourceManager/Services/ItemsController.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/DNN Platform/Modules/ResourceManager/Services/ItemsController.cs b/DNN Platform/Modules/ResourceManager/Services/ItemsController.cs index 23da8cfe9b5..49259e6615e 100644 --- a/DNN Platform/Modules/ResourceManager/Services/ItemsController.cs +++ b/DNN Platform/Modules/ResourceManager/Services/ItemsController.cs @@ -257,12 +257,8 @@ public HttpResponseMessage CreateNewFolder(CreateNewFolderRequest request) var groupId = this.FindGroupId(this.Request); var moduleId = this.Request.FindModuleId(); var moduleMode = new SettingsManager(moduleId, groupId).Mode; - var parentFolder = FolderManager.Instance.GetFolder(request.ParentFolderId); - var folderMappingId = string.IsNullOrWhiteSpace(parentFolder.FolderPath) - ? request.FolderMappingId - : parentFolder.FolderMappingID; - var folder = ItemsManager.Instance.CreateNewFolder(request.FolderName, request.ParentFolderId, folderMappingId, request.MappedName, moduleMode); + var folder = ItemsManager.Instance.CreateNewFolder(request.FolderName, request.ParentFolderId, request.FolderMappingId, request.MappedName, moduleMode); return this.Request.CreateResponse( HttpStatusCode.OK,