The Free Software Media System - Server Backend & API
Merge pull request #14094 from allesmi/fix/ancestor-ids-parent-child-relation
Alexander Miller29fc7711a19f
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.mdindex 938eee0d75..1ff5607eae 100644--- a/CONTRIBUTORS.md+++ b/CONTRIBUTORS.md@@ -195,6 +195,7 @@- [Kenneth Cochran](https://github.com/kennethcochran)- [benedikt257](https://github.com/benedikt257)- [revam](https://github.com/revam)+ - [allesmi](https://github.com/allesmi)# Emby Contributorsdiff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.csindex 7d30ac1a07..64c4a92268 100644--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs@@ -2191,7 +2191,7 @@ public sealed class BaseItemRepositoryif (filter.AncestorIds.Length > 0){- baseQuery = baseQuery.Where(e => e.Children!.Any(f => filter.AncestorIds.Contains(f.ItemId)));+ baseQuery = baseQuery.Where(e => e.Parents!.Any(f => filter.AncestorIds.Contains(f.ParentItemId)));}if (!string.IsNullOrWhiteSpace(filter.AncestorWithPresentationUniqueKey))