add index number filter

This commit is contained in:
Luke Pulverenti
2016-06-14 22:18:19 -04:00
parent 2f39ad1673
commit 7dd2b1592c
3 changed files with 10 additions and 7 deletions

View File

@@ -1698,10 +1698,10 @@ namespace MediaBrowser.Server.Implementations.Persistence
{
var groups = new List<string>();
if (!string.IsNullOrWhiteSpace(query.GroupByAncestorOfType))
{
groups.Add("(Select PresentationUniqueKey from TypedBaseItems B where B.Type = 'MediaBrowser.Controller.Entities.TV.Series' And B.Guid in (Select AncestorId from AncestorIds where ItemId=A.Guid))");
}
//if (!string.IsNullOrWhiteSpace(query.GroupByAncestorOfType))
//{
// groups.Add("(Select PresentationUniqueKey from TypedBaseItems B where B.Type = 'MediaBrowser.Controller.Entities.TV.Series' And B.Guid in (Select AncestorId from AncestorIds where ItemId=A.Guid))");
//}
if (EnableGroupByPresentationUniqueKey(query))
{