Merge pull request #240 from chlupac/pr

Folder creation fail
This commit is contained in:
Shaun Walker 2020-02-28 08:08:23 -05:00 committed by GitHub
commit 0e00fb450d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@
public override string Title { get { return "Folder Management"; } } public override string Title { get { return "Folder Management"; } }
List<Folder> folders; List<Folder> folders;
int folderid; int folderid = -1;
string name; string name;
int parentid = -1; int parentid = -1;
bool issystem = false; bool issystem = false;
@ -86,7 +86,7 @@
Folder folder = await FolderService.GetFolderAsync(folderid); Folder folder = await FolderService.GetFolderAsync(folderid);
if (folder != null) if (folder != null)
{ {
parentid = (folder.ParentId == null) ? -1 : folder.ParentId.Value; parentid = folder.ParentId ?? -1;
name = folder.Name; name = folder.Name;
issystem = folder.IsSystem; issystem = folder.IsSystem;
permissions = folder.Permissions; permissions = folder.Permissions;