Skip to content

Commit

Permalink
Merge pull request #30 from skttl/29
Browse files Browse the repository at this point in the history
ReplaceEditorObjectFromConfig in v8 too
  • Loading branch information
abjerner committed Sep 7, 2019
2 parents 2421f19 + 21ab290 commit c6c2614
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Skybrud.Umbraco.GridData/GridControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ public static GridControl Parse(GridArea area, JObject obj) {
Area = area
};

// As of Umbraco 7.3, information about the editor is no longer saved in the JSON, since these should be read from the configuration
if (UmbracoVersion.Current.Major == 7 && UmbracoVersion.Current.Minor >= 3) Howdy.ReplaceEditorObjectFromConfig(control);
Howdy.ReplaceEditorObjectFromConfig(control);

// Parse the editor
control.Editor = obj.GetObject("editor", x => GridEditor.Parse(control, x));
Expand All @@ -322,4 +321,4 @@ public static GridControl Parse(GridArea area, JObject obj) {

}

}
}

0 comments on commit c6c2614

Please sign in to comment.