Merge with 6.0.3

This commit is contained in:
Shannon Deminick
2013-03-05 22:19:31 +06:00
4 changed files with 50 additions and 1 deletions

View File

@@ -656,7 +656,14 @@ namespace Umbraco.Web.Models
public IPublishedContentProperty GetProperty(string alias)
{
return GetProperty(alias, false);
var prop = GetProperty(alias, false);
if (prop == null && alias.StartsWith("_"))
{
//if it is prefixed and the first result failed, try to get it by recursive
var recursiveAlias = alias.Substring(1, alias.Length - 1);
return GetProperty(recursiveAlias, true);
}
return prop;
}
public IPublishedContentProperty GetProperty(string alias, bool recursive)
{