only include pages in index if they do not have any modules
This commit is contained in:
		| @ -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); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 sbwalker
					sbwalker