Skip to content

Commit

Permalink
Allowed creating different nested folder types
Browse files Browse the repository at this point in the history
Allowed creating different nested folder types
  • Loading branch information
valadas authored and bdukes committed Sep 27, 2022
1 parent 9739034 commit 3585273
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3585273

Please sign in to comment.