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

Commit 4db5cdd

Browse files
committed
fix: find DTGE controls based on a property in the value instead of the editor alias
1 parent 33b88d0 commit 4db5cdd

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
@@ -71,7 +71,7 @@ internal GridValue DeserializeGridValue(string rawJson, out IEnumerable<DocTypeG
7171
{
7272
// Find all controls that uses DTGE editor
7373
var controls = grid.Sections.SelectMany(x => x.Rows.SelectMany(r => r.Areas).SelectMany(a => a.Controls)).ToArray();
74-
dtgeValues = controls.Where(x => x.Editor.Alias.ToLowerInvariant() == "doctype").Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
74+
dtgeValues = controls.Where(x => x.Value["dtgeContentTypeAlias"] != null).Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
7575
}
7676
else
7777
{

0 commit comments

Comments
 (0)