Fixed .Ancestors(int) to return ancestors where the level <= int rather than level = int to match .Descendants(int) >= behaviour

This commit is contained in:
agrath@gmail.com
2011-03-08 18:43:59 -13:00
parent 9949420c6d
commit 017ed3635a

View File

@@ -620,7 +620,7 @@ namespace umbraco.MacroEngines
}
public DynamicNodeList Ancestors(int level)
{
return Ancestors(n => n.Level == level);
return Ancestors(n => n.Level <= level);
}
public DynamicNodeList Ancestors(string nodeTypeAlias)
{