diff --git a/src/Lidarr.Http/REST/RestModule.cs b/src/Lidarr.Http/REST/RestModule.cs index bb8a4821d..b1a945499 100644 --- a/src/Lidarr.Http/REST/RestModule.cs +++ b/src/Lidarr.Http/REST/RestModule.cs @@ -20,6 +20,7 @@ namespace Lidarr.Http.REST // See src/Lidarr.Api.V1/Queue/QueueModule.cs private static readonly HashSet VALID_SORT_KEYS = new HashSet(StringComparer.OrdinalIgnoreCase) { + "artists.sortname", //Workaround artists table properties not being added on isValidSortKey call "timeleft", "estimatedCompletionTime", "protocol", diff --git a/src/NzbDrone.Core.Test/Datastore/SortKeyValidationFixture.cs b/src/NzbDrone.Core.Test/Datastore/SortKeyValidationFixture.cs index 8ad1a674b..2fe925548 100644 --- a/src/NzbDrone.Core.Test/Datastore/SortKeyValidationFixture.cs +++ b/src/NzbDrone.Core.Test/Datastore/SortKeyValidationFixture.cs @@ -17,6 +17,7 @@ namespace NzbDrone.Core.Test.Datastore TableMapping.Mapper.IsValidSortKey(sortKey).Should().BeFalse(); } + //[TestCase("artists.sortName")] TODO: Figure out why Artists table properties don't get mapped [TestCase("Id")] [TestCase("id")] [TestCase("commands.id")]