From ab07490a2d5ae54180d0af3db27c89287991e567 Mon Sep 17 00:00:00 2001 From: Hisham Bin Ateya Date: Wed, 5 Jun 2024 20:21:58 +0300 Subject: [PATCH] Remove duplicate condition in LinkFieldIndexProvider.Describe() (#16251) --- .../Indexing/SQL/LinkFieldIndexProvider.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs b/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs index 9c40ac3daa4..0410d57feb7 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs +++ b/src/OrchardCore.Modules/OrchardCore.ContentFields/Indexing/SQL/LinkFieldIndexProvider.cs @@ -52,11 +52,6 @@ public override void Describe(DescribeContext context) return null; } - if (!contentItem.Latest && !contentItem.Published) - { - return null; - } - // Lazy initialization because of ISession cyclic dependency _contentDefinitionManager ??= _serviceProvider.GetRequiredService();