aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Folder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-23 12:43:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-05-23 12:43:24 -0400
commit2f93d4498bc50eb36546a94d2ee3c4a0ab502480 (patch)
treec347b284e5faca4fffb92ed75f2d5b5ef3d9622e /MediaBrowser.Controller/Entities/Folder.cs
parent54cf0da75826d641b28a34afece7a4cb0eaaaec2 (diff)
update query fields
Diffstat (limited to 'MediaBrowser.Controller/Entities/Folder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Folder.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs
index b18d47a65..f83b2f7bd 100644
--- a/MediaBrowser.Controller/Entities/Folder.cs
+++ b/MediaBrowser.Controller/Entities/Folder.cs
@@ -672,7 +672,7 @@ namespace MediaBrowser.Controller.Entities
{
return ItemRepository.GetItemList(new InternalItemsQuery
{
- ParentId = Id,
+ Parent = this,
GroupByPresentationUniqueKey = false,
DtoOptions = new DtoOptions(true)
});
@@ -692,7 +692,7 @@ namespace MediaBrowser.Controller.Entities
{
Recursive = false,
Limit = 0,
- ParentId = Id,
+ Parent = this,
DtoOptions = new DtoOptions(false)
{
EnableImages = false
@@ -743,7 +743,10 @@ namespace MediaBrowser.Controller.Entities
if (!(this is UserRootFolder) && !(this is AggregateFolder))
{
- query.ParentId = query.ParentId ?? Id;
+ if (!query.ParentId.HasValue)
+ {
+ query.Parent = this;
+ }
}
if (RequiresPostFiltering2(query))