Apply content type filter on self as well (#17581)
This commit is contained in:
committed by
GitHub
parent
75f1beed9d
commit
334cb4701f
@@ -2468,9 +2468,12 @@ public static class PublishedContentExtensions
|
||||
string? contentTypeAlias = null)
|
||||
{
|
||||
if (orSelf)
|
||||
{
|
||||
if (contentTypeAlias is null || content.ContentType.Alias == contentTypeAlias)
|
||||
{
|
||||
yield return content;
|
||||
}
|
||||
}
|
||||
|
||||
var nodeExists = contentTypeAlias is null
|
||||
? navigationQueryService.TryGetDescendantsKeys(content.Key, out IEnumerable<Guid> descendantsKeys)
|
||||
@@ -2500,9 +2503,12 @@ public static class PublishedContentExtensions
|
||||
string? contentTypeAlias = null)
|
||||
{
|
||||
if (orSelf)
|
||||
{
|
||||
if (contentTypeAlias is null || content.ContentType.Alias == contentTypeAlias)
|
||||
{
|
||||
yield return content;
|
||||
}
|
||||
}
|
||||
|
||||
var nodeExists = contentTypeAlias is null
|
||||
? navigationQueryService.TryGetAncestorsKeys(content.Key, out IEnumerable<Guid> ancestorsKeys)
|
||||
|
||||
Reference in New Issue
Block a user