diff --git a/products/ASC.Files/Server/Core/Dao/TeamlabDao/FolderDao.cs b/products/ASC.Files/Server/Core/Dao/TeamlabDao/FolderDao.cs index ec58030624..335200146c 100644 --- a/products/ASC.Files/Server/Core/Dao/TeamlabDao/FolderDao.cs +++ b/products/ASC.Files/Server/Core/Dao/TeamlabDao/FolderDao.cs @@ -926,6 +926,8 @@ namespace ASC.Files.Core.Data tx.Commit(); //Commit changes } + FilesDbContext.SaveChanges(); + return newFolderId; } diff --git a/products/ASC.Files/Server/Core/FileStorageService.cs b/products/ASC.Files/Server/Core/FileStorageService.cs index 4733fe5ff0..79d81c94f1 100644 --- a/products/ASC.Files/Server/Core/FileStorageService.cs +++ b/products/ASC.Files/Server/Core/FileStorageService.cs @@ -2015,18 +2015,6 @@ namespace ASC.Web.Files.Services.WCFService } } - private static void ParseArrayItems(Dictionary items, out Dictionary folders, out Dictionary files) - { - //TODO:!!!!Fix - folders = new Dictionary(); - files = new Dictionary(); - foreach (var item in (items ?? new Dictionary())) - { - if (item.Key.StartsWith("file_")) files.Add(item.Key.Substring("file_".Length), item.Value); - if (item.Key.StartsWith("folder_")) folders.Add(item.Key.Substring("folder_".Length), item.Value); - } - } - private static void ErrorIf(bool condition, string errorMessage) { if (condition) throw new InvalidOperationException(errorMessage);