PublishedContent - align with v7, refactor IPublishedProperty & names

This commit is contained in:
Stephan
2013-09-19 13:09:27 +02:00
parent f9cae9c4d8
commit c3caf7ff04
20 changed files with 80 additions and 77 deletions

View File

@@ -177,7 +177,7 @@ namespace Umbraco.Web.Models
{
var reflectedProperty = GetReflectedProperty(binder.Name);
var result = reflectedProperty != null
? reflectedProperty.Value
? reflectedProperty.ObjectValue
: null;
return Attempt.If(result != null, result);
@@ -722,8 +722,8 @@ namespace Umbraco.Web.Models
public string GetPropertyValue(string alias, bool recursive)
{
var property = GetProperty(alias, recursive);
if (property == null || property.Value == null) return null;
return property.Value.ToString();
if (property == null || property.ObjectValue == null) return null;
return property.ObjectValue.ToString();
}
#endif