Skip to content

Commit

Permalink
Fixed corrupted decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed May 17, 2018
1 parent 7e7480e commit 0499c59
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using Newtonsoft.Json.Linq;
using System.Globalization;
using System.Linq;
using Newtonsoft.Json.Linq;
using VirtoCommerce.Storefront.Model;
using coreDto = VirtoCommerce.Storefront.AutoRestClients.CoreModuleApi.Models;
using platformDto = VirtoCommerce.Storefront.AutoRestClients.PlatformModuleApi.Models;

namespace VirtoCommerce.Storefront.Domain
{
{
public static class DynamicPropertyConverter
{
public static DynamicProperty ToDynamicProperty(this coreDto.DynamicObjectProperty propertyDto)
Expand Down Expand Up @@ -88,7 +89,7 @@ private static DynamicPropertyDictionaryItem ToDictItem(this platformDto.Dynamic

private static LocalizedString ToLocalizedString(this coreDto.DynamicPropertyObjectValue dto)
{
return new LocalizedString(new Language(dto.Locale), dto.Value.ToString());
return new LocalizedString(new Language(dto.Locale), string.Format(CultureInfo.InvariantCulture, "{0}", dto.Value));
}

private static coreDto.DynamicPropertyObjectValue ToPropertyValueDto(this DynamicPropertyDictionaryItem dictItem)
Expand Down

0 comments on commit 0499c59

Please sign in to comment.