mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 20:09:09 +08:00
Reverting functional change to ignore empty filter groups
This commit is contained in:
parent
2234501139
commit
69607fd9de
@ -205,8 +205,8 @@ namespace Orchard.Projections.Services {
|
||||
|
||||
var version = queryRecord.VersionScope.ToVersionOptions();
|
||||
|
||||
// Iterate over each filter group, but ignore empty ones, because they'd cause all content items to be returned.
|
||||
foreach (var group in queryRecord.FilterGroups.Where(group => group.Filters.Count > 0)) {
|
||||
// Iterate over each filter group and evaluate the filters.
|
||||
foreach (var group in queryRecord.FilterGroups) {
|
||||
var contentQuery = _contentManager.HqlQuery().ForVersion(version);
|
||||
|
||||
// Iterate over each filter to apply the alterations to the query object.
|
||||
|
Loading…
Reference in New Issue
Block a user