diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs index bada35623b..5c7488401f 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/DocumentRepository.cs @@ -152,20 +152,15 @@ public class DocumentRepository : ContentRepositoryBase(x => x.Published); } // invariant: left join will yield NULL and we must use pcv to determine published // variant: left join may yield NULL or something, and that determines published - Sql joins = Sql() .InnerJoin("ctype").On( (content, contentType) => content.ContentTypeId == contentType.NodeId, aliasRight: "ctype") @@ -185,9 +180,9 @@ public class DocumentRepository : ContentRepositoryBase(x => x.Published)}) ELSE (CASE WHEN ccvp.id IS NULL THEN 0 ELSE 1 END) END) AS ordering "); // trailing space is important! sql = Sql(sqlText, sql.Arguments);