Recursion was wrong on this one.

Fixed #U4-1147
This commit is contained in:
Sebastiaan Janssen
2012-11-08 12:41:18 -01:00
parent e9ae11ff2b
commit 00a625fb7f

View File

@@ -32,9 +32,9 @@ namespace Umbraco.Core
var prop = content.GetPropertyRecursive(alias);
while (prop == null || prop.Value == null || prop.Value.ToString().IsNullOrWhiteSpace())
{
var parent = context.Parent;
if (parent == null) break;
prop = context.GetPropertyRecursive(alias);
if (context.Parent == null) break;
context = context.Parent;
prop = context.GetPropertyRecursive(alias);
}
return prop;
}