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

Commit d6331a5

Browse files
author
Asbjørn Riis-Knudsen
committed
Use CompositionPropertyTypes instead of PropertyTypes to allow the use of doctype compositions
1 parent 3dec042 commit d6331a5

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
@@ -63,7 +63,7 @@ public static IPublishedContent ConvertValueToContent(string id, string docTypeA
6363
/* Now that we have the DB stored value, we actually need to then convert it into it's
6464
* XML serialized state as expected by the published property by calling ConvertDbToString
6565
*/
66-
var propType2 = contentType.PropertyTypes.Single(x => x.Alias == propType.PropertyTypeAlias);
66+
var propType2 = contentType.CompositionPropertyTypes.Single(x => x.Alias == propType.PropertyTypeAlias);
6767
var newValue2 = propEditor.ValueEditor.ConvertDbToString(new Property(propType2, newValue), propType2,
6868
ApplicationContext.Current.Services.DataTypeService);
6969

0 commit comments

Comments
 (0)