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

Commit 09bb2be

Browse files
authored
Merge pull request #270 from skttl/develop
1.2.9
2 parents baea08e + 9804a25 commit 09bb2be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
image: Visual Studio 2017
22

33
# version format
4-
version: 1.2.8.{build}
4+
version: 1.2.9.{build}
55

66
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
77
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Newtonsoft.Json;
2+
using Newtonsoft.Json.Linq;
23
using Our.Umbraco.DocTypeGridEditor.Models;
34
using System;
45
using System.Collections.Generic;
@@ -71,7 +72,7 @@ internal GridValue DeserializeGridValue(string rawJson, out IEnumerable<DocTypeG
7172
{
7273
// Find all controls that uses DTGE editor
7374
var controls = grid.Sections.SelectMany(x => x.Rows.SelectMany(r => r.Areas).SelectMany(a => a.Controls)).ToArray();
74-
dtgeValues = controls.Where(x => x.Value["dtgeContentTypeAlias"] != null).Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
75+
dtgeValues = controls.Where(x => x.Value is JObject && x.Value["dtgeContentTypeAlias"] != null).Select(x => x.Value.ToObject<DocTypeGridEditorValue>());
7576
}
7677
else
7778
{

0 commit comments

Comments
 (0)