Merge pull request #4404 from sbwalker/dev

only include pages in index if they do not have any modules
This commit is contained in:
Shaun Walker
2024-07-12 10:53:25 -04:00
committed by GitHub

View File

@ -97,7 +97,7 @@ namespace Oqtane.Infrastructure
ContentModifiedOn = page.ModifiedOn,
AdditionalContent = string.Empty,
CreatedOn = DateTime.UtcNow,
IsDeleted = removed,
IsDeleted = (removed || pageModules.Any(item => item.PageId == page.PageId)),
TenantId = tenantId
};
searchContents.Add(searchContent);