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

Commit c14495e

Browse files
committed
fix: find DTGE controls based on a property in the value instead of the editor alias
1 parent 5f53ed3 commit c14495e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Our.Umbraco.DocTypeGridEditor/ValueProcessing/DocTypeGridEditorDataValueReference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ internal GridValue DeserializeGridValue(string rawJson, out IEnumerable<DocTypeG
7575
{
7676
// Find all controls that uses DTGE editor
7777
var controls = grid.Sections.SelectMany(x => x.Rows.SelectMany(r => r.Areas).SelectMany(a => a.Controls)).ToArray();
78-
dtgeValues = controls.Where(x => x.Editor.Alias.ToLowerInvariant() == "doctype").Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
78+
dtgeValues = controls.Where(x => x.Value["dtgeContentTypeAlias"] != null).Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
7979
}
8080
else
8181
{

0 commit comments

Comments
 (0)