mirror of
https://github.com/Readarr/Readarr
synced 2026-05-08 21:13:58 +02:00
Little hack to deal with backgrid's setting of sortKey
This commit is contained in:
parent
6ba17782aa
commit
8dcfbe7b9d
1 changed files with 7 additions and 0 deletions
|
|
@ -33,6 +33,13 @@ private PagingResource<HistoryResource> GetHistory(PagingResource<HistoryResourc
|
||||||
SortDirection = pagingResource.SortDirection
|
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)
|
if (episodeId.HasValue)
|
||||||
{
|
{
|
||||||
int i = (int)episodeId;
|
int i = (int)episodeId;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue