From 581f3a1893b4741f28a8407bb46da523aab07fea Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 29 Aug 2013 12:01:30 +1000 Subject: [PATCH] Fixes build errors --- src/Umbraco.Web/Models/DynamicPublishedContent.cs | 5 +++-- src/Umbraco.Web/PublishedContentExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/Models/DynamicPublishedContent.cs b/src/Umbraco.Web/Models/DynamicPublishedContent.cs index 35f2040410..3ff0732f99 100644 --- a/src/Umbraco.Web/Models/DynamicPublishedContent.cs +++ b/src/Umbraco.Web/Models/DynamicPublishedContent.cs @@ -236,10 +236,11 @@ namespace Umbraco.Web.Models } //get the data type id for the current property - var dataType = Umbraco.Core.PublishedContentHelper.GetDataType( + var dataType = PublishedContentHelper.GetDataType( ApplicationContext.Current, userProperty.DocumentTypeAlias, - userProperty.Alias); + userProperty.Alias, + ItemType); //convert the string value to a known type var converted = Umbraco.Core.PublishedContentHelper.ConvertPropertyValue(result, dataType, userProperty.DocumentTypeAlias, userProperty.Alias); diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs index b36a9d7880..29d7e1f22c 100644 --- a/src/Umbraco.Web/PublishedContentExtensions.cs +++ b/src/Umbraco.Web/PublishedContentExtensions.cs @@ -191,7 +191,7 @@ namespace Umbraco.Web //before we try to convert it manually, lets see if the PropertyEditorValueConverter does this for us //Here we need to put the value through the IPropertyEditorValueConverter's //get the data type id for the current property - var dataType = PublishedContentHelper.GetDataType(ApplicationContext.Current, prop.DocumentTypeAlias, alias); + var dataType = PublishedContentHelper.GetDataType(ApplicationContext.Current, prop.DocumentTypeAlias, alias, prop.ItemType); //convert the value to a known type var converted = PublishedContentHelper.ConvertPropertyValue(p.Value, dataType, prop.DocumentTypeAlias, alias); object parsedLinksVal;