only include pages in index if they do not have any modules
This commit is contained in:
parent
bb79b9ed74
commit
938eee80a9
|
@ -97,7 +97,7 @@ namespace Oqtane.Infrastructure
|
||||||
ContentModifiedOn = page.ModifiedOn,
|
ContentModifiedOn = page.ModifiedOn,
|
||||||
AdditionalContent = string.Empty,
|
AdditionalContent = string.Empty,
|
||||||
CreatedOn = DateTime.UtcNow,
|
CreatedOn = DateTime.UtcNow,
|
||||||
IsDeleted = removed,
|
IsDeleted = (removed || pageModules.Any(item => item.PageId == page.PageId)),
|
||||||
TenantId = tenantId
|
TenantId = tenantId
|
||||||
};
|
};
|
||||||
searchContents.Add(searchContent);
|
searchContents.Add(searchContent);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user