Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit f7ac16e

Browse files
committed
fixed UnpublishedProperty
1 parent 5abed06 commit f7ac16e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Our.Umbraco.DocTypeGridEditor/Models/UnpublishedProperty.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using PropertyEditors = Umbraco.Core.PropertyEditors;
23
using Umbraco.Core.Models;
34
using Umbraco.Core.Models.PublishedContent;
45

@@ -20,10 +21,9 @@ public UnpublishedProperty(PublishedPropertyType propertyType, object value)
2021
this.dataValue = value;
2122
this.hasValue = new Lazy<bool>(() => value != null && value.ToString().Trim().Length > 0);
2223

23-
// TODO: FIXME!
24-
//this.sourceValue = new Lazy<object>(() => this.propertyType.ConvertDataToSource(this.dataValue, true));
25-
//this.objectValue = new Lazy<object>(() => this.propertyType.ConvertSourceToObject(this.sourceValue.Value, true));
26-
//this.xpathValue = new Lazy<object>(() => this.propertyType.ConvertSourceToXPath(this.sourceValue.Value, true));
24+
this.sourceValue = new Lazy<object>(() => this.propertyType.ConvertSourceToInter(null, this.dataValue, true));
25+
this.objectValue = new Lazy<object>(() => this.propertyType.ConvertInterToObject(null, PropertyEditors.PropertyCacheLevel.None, this.sourceValue.Value, true));
26+
this.xpathValue = new Lazy<object>(() => this.propertyType.ConvertInterToXPath(null, PropertyEditors.PropertyCacheLevel.None, this.sourceValue.Value, true));
2727
}
2828

2929
public string PropertyTypeAlias => this.propertyType.DataType.EditorAlias;

0 commit comments

Comments
 (0)