mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-26 22:46:37 -04:00
Updated sorting architecture so the collections can specify the sort-oddities instead of in backgrid column definitions.
This commit is contained in:
@@ -31,12 +31,6 @@ namespace NzbDrone.Api.Wanted
|
||||
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.sortTitle";
|
||||
}
|
||||
|
||||
if (pagingResource.FilterKey == "monitored" && pagingResource.FilterValue == "false")
|
||||
{
|
||||
pagingSpec.FilterExpression = v => v.Monitored == false || v.Series.Monitored == false;
|
||||
|
||||
Reference in New Issue
Block a user