From 21ab2903e9e058eb83e6bf32d89f4a01619ef851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Kottal?= Date: Sat, 7 Sep 2019 20:17:18 +0200 Subject: [PATCH] Removes version check before replacing editor object from config. --- src/Skybrud.Umbraco.GridData/GridControl.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Skybrud.Umbraco.GridData/GridControl.cs b/src/Skybrud.Umbraco.GridData/GridControl.cs index 0117687..81ba188 100644 --- a/src/Skybrud.Umbraco.GridData/GridControl.cs +++ b/src/Skybrud.Umbraco.GridData/GridControl.cs @@ -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.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)); @@ -322,4 +321,4 @@ public static GridControl Parse(GridArea area, JObject obj) { } -} \ No newline at end of file +}