update query fields

This commit is contained in:
Luke Pulverenti
2017-05-23 12:43:24 -04:00
parent 54cf0da758
commit 2f93d4498b
9 changed files with 296 additions and 71 deletions

View File

@@ -46,7 +46,7 @@ namespace MediaBrowser.Server.Implementations.Devices
{
if (!_hasChildren.HasValue)
{
_hasChildren = LibraryManager.GetItemIds(new InternalItemsQuery { ParentId = Id }).Count > 0;
_hasChildren = LibraryManager.GetItemIds(new InternalItemsQuery { Parent = this }).Count > 0;
}
return _hasChildren.Value;