Fixed .Ancestors(int) to return ancestors where the level <= int rather than level = int to match .Descendants(int) >= behaviour
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user