Merge
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Umbraco.Web
|
||||
DescendantDocumentById = "//node [@id={0}]";
|
||||
DescendantDocumentByAlias = "//node[("
|
||||
+ "contains(concat(',',translate(data [@alias='umbracoUrlAlias'], ' ', ''),','),',{0},')"
|
||||
+ " or contains(concat(',',translate(data [@alias='umbracoUrlAlias'], ' ', ''),','),',/{0},'"
|
||||
+ " or contains(concat(',',translate(data [@alias='umbracoUrlAlias'], ' ', ''),','),',/{0},')"
|
||||
+ ")]";
|
||||
ChildDocumentByUrlName = "/node [@urlName='{0}']";
|
||||
RootDocumentWithLowestSortOrder = "/root/node [not(@sortOrder > ../node/@sortOrder)][1]";
|
||||
|
||||
@@ -781,7 +781,7 @@ namespace umbraco.cms.businesslogic.web
|
||||
int x = SqlHelper.ExecuteScalar<int>(@"select count(node.id) - count(doc.nodeid)
|
||||
from umbracoNode as node
|
||||
left join cmsDocument as doc on (node.id=doc.nodeId and doc.published=1)
|
||||
where '" + Path + ",' like " + SqlHelper.Concat("node.path", "'%'"));
|
||||
where '" + Path + ",' like " + SqlHelper.Concat("node.path", "',%'"));
|
||||
return (x == 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user