From caad0afed8319ebcd0c70b12a3768c5841e4697c Mon Sep 17 00:00:00 2001 From: Casey Neehouse Date: Thu, 7 Mar 2013 21:00:31 +0500 Subject: [PATCH] Corrects u4-1870 - Refactor Load Content SQL to check if ID is in published list versus using a join that can cause duplicate entries. --- src/Umbraco.Web/umbraco.presentation/content.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/content.cs b/src/Umbraco.Web/umbraco.presentation/content.cs index b762e3ba85..990bdef64a 100644 --- a/src/Umbraco.Web/umbraco.presentation/content.cs +++ b/src/Umbraco.Web/umbraco.presentation/content.cs @@ -1091,8 +1091,7 @@ namespace umbraco string sql = @"select umbracoNode.id, umbracoNode.parentId, umbracoNode.sortOrder, cmsContentXml.xml from umbracoNode inner join cmsContentXml on cmsContentXml.nodeId = umbracoNode.id and umbracoNode.nodeObjectType = @type -inner join cmsDocument on cmsDocument.nodeId = umbracoNode.id -where cmsDocument.published = 1 +where umbracoNode.id in (select cmsDocument.nodeId from cmsDocument where cmsDocument.published = 1) order by umbracoNode.level, umbracoNode.sortOrder"; lock (DbReadSyncLock)