Fixed: Creating root folders without default tags

Fixes #4898
pull/4856/head
Bogdan 5 months ago
parent 9045dea536
commit 2dec783272

@ -67,7 +67,7 @@ namespace Lidarr.Api.V1.RootFolders
DefaultQualityProfileId = resource.DefaultQualityProfileId, DefaultQualityProfileId = resource.DefaultQualityProfileId,
DefaultMonitorOption = resource.DefaultMonitorOption, DefaultMonitorOption = resource.DefaultMonitorOption,
DefaultNewItemMonitorOption = resource.DefaultNewItemMonitorOption, DefaultNewItemMonitorOption = resource.DefaultNewItemMonitorOption,
DefaultTags = resource.DefaultTags, DefaultTags = resource.DefaultTags ?? new HashSet<int>()
}; };
} }

@ -12,7 +12,7 @@ namespace NzbDrone.Core.RootFolders
public int DefaultQualityProfileId { get; set; } public int DefaultQualityProfileId { get; set; }
public MonitorTypes DefaultMonitorOption { get; set; } public MonitorTypes DefaultMonitorOption { get; set; }
public NewItemMonitorTypes DefaultNewItemMonitorOption { get; set; } public NewItemMonitorTypes DefaultNewItemMonitorOption { get; set; }
public HashSet<int> DefaultTags { get; set; } public HashSet<int> DefaultTags { get; set; } = new ();
public bool Accessible { get; set; } public bool Accessible { get; set; }
public long? FreeSpace { get; set; } public long? FreeSpace { get; set; }

Loading…
Cancel
Save