Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnim committed Jul 29, 2017
1 parent 28d34ea commit 6ae7274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GMO.Umbraco.PropertyHelper/GMO.Umbraco.PropertyHelper.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>GMO.Umbraco.PropertyHelper</id>
<version>1.0.0</version>
<version>1.1.0</version>
<title>GMO.Umbraco.PropertyHelper</title>
<authors>Gunnar Már Óttarsson</authors>
<owners>Gunnar Már Óttarsson</owners>
Expand All @@ -11,7 +11,7 @@
<iconUrl>https://a-v2.sndcdn.com/assets/images/sc-icons/favicon-2cadd14b.ico</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Handles retrieval of various types of property values.</description>
<releaseNotes>Initial.</releaseNotes>
<releaseNotes>IsVortoProperty check added to handle empty vorto properties.</releaseNotes>
<copyright>Copyright 2017</copyright>
<tags></tags>
</metadata>
Expand Down
4 changes: 3 additions & 1 deletion GMO.Umbraco.PropertyHelper/PropertyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public static object GetValueFromProperty(
)
{
// Has vorto value returns false for empty vorto properties.
// instead of returning a vorto object with dtdGuid and value null we simply return null val.
// So instead of checking first with hasVortoValue, then returning prop.value of
// a vorto object with dtdGuid and value null we first check IsVortoProperty.
// Then we can return null instead of a useless object.
if (IsVortoProperty(content, prop.PropertyTypeAlias))
{
if (content.HasVortoValue(prop.PropertyTypeAlias, culture))
Expand Down

0 comments on commit 6ae7274

Please sign in to comment.