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

Commit 5749500

Browse files
committed
Merge pull request #21 from arknu/develop
#15: Use CompositionPropertyTypes instead of PropertyTypes
2 parents a84fa28 + d6331a5 commit 5749500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Our.Umbraco.DocTypeGridEditor/Helpers/DocTypeGridEditorHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static IPublishedContent ConvertValueToContent(string id, string docTypeA
6464
/* Now that we have the DB stored value, we actually need to then convert it into it's
6565
* XML serialized state as expected by the published property by calling ConvertDbToString
6666
*/
67-
var propType2 = contentType.PropertyTypes.Single(x => x.Alias == propType.PropertyTypeAlias);
67+
var propType2 = contentType.CompositionPropertyTypes.Single(x => x.Alias == propType.PropertyTypeAlias);
6868
var newValue2 = propEditor.ValueEditor.ConvertDbToString(new Property(propType2, newValue), propType2,
6969
ApplicationContext.Current.Services.DataTypeService);
7070

0 commit comments

Comments
 (0)