1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 09:47:39 +00:00

Little hack to deal with backgrid's setting of sortKey

This commit is contained in:
Mark McDowall 2013-12-27 01:47:51 -08:00
parent 6ba17782aa
commit 8dcfbe7b9d

View file

@ -33,6 +33,13 @@ namespace NzbDrone.Api.History
SortDirection = pagingResource.SortDirection
};
//This is a hack to deal with backgrid setting the sortKey to the column name instead of sortValue
if (pagingSpec.SortKey.Equals("series", StringComparison.InvariantCultureIgnoreCase))
{
pagingSpec.SortKey = "series.title";
}
if (episodeId.HasValue)
{
int i = (int)episodeId;