U4-1212 - bugfix Document.PathPublished

This commit is contained in:
Stephan
2012-12-11 17:37:33 -01:00
parent 657f165ffb
commit 51204ee401

View File

@@ -783,7 +783,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);
}
}