diff --git a/src/Umbraco.Core/Models/GridValue.cs b/src/Umbraco.Core/Models/GridValue.cs
index 717fcd2f88..237385f3f4 100644
--- a/src/Umbraco.Core/Models/GridValue.cs
+++ b/src/Umbraco.Core/Models/GridValue.cs
@@ -5,6 +5,8 @@ using Newtonsoft.Json.Linq;
namespace Umbraco.Core.Models
{
+ //TODO: Make a property value converter for this!
+
///
/// A model representing the value saved for the grid
///
@@ -19,7 +21,7 @@ namespace Umbraco.Core.Models
public class GridSection
{
[JsonProperty("grid")]
- public string Grid { get; set; }
+ public string Grid { get; set; } //fixme: what is this?
[JsonProperty("rows")]
public IEnumerable Rows { get; set; }
@@ -46,7 +48,7 @@ namespace Umbraco.Core.Models
public class GridArea
{
[JsonProperty("grid")]
- public string Grid { get; set; }
+ public string Grid { get; set; } //fixme: what is this?
[JsonProperty("controls")]
public IEnumerable Controls { get; set; }
diff --git a/src/Umbraco.Examine/BaseValueSetBuilder.cs b/src/Umbraco.Examine/BaseValueSetBuilder.cs
index c1780a9b7d..043e017754 100644
--- a/src/Umbraco.Examine/BaseValueSetBuilder.cs
+++ b/src/Umbraco.Examine/BaseValueSetBuilder.cs
@@ -1,4 +1,5 @@
using System.Collections.Generic;
+using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.PropertyEditors;
@@ -16,7 +17,7 @@ namespace Umbraco.Examine
protected void AddPropertyValue(Property property, string culture, string segment, IDictionary values)
{
- var editor = _propertyEditors[property.Alias];
+ var editor = _propertyEditors[property.PropertyType.PropertyEditorAlias];
if (editor == null) return;
var indexVals = editor.ValueIndexer.GetIndexValues(property, culture, segment);
@@ -34,11 +35,24 @@ namespace Umbraco.Examine
case null:
continue;
case string strVal:
- if (strVal.IsNullOrWhiteSpace()) return;
- values.Add($"{keyVal.Key}{cultureSuffix}", new[] { val });
+ {
+ if (strVal.IsNullOrWhiteSpace()) return;
+ var key = $"{keyVal.Key}{cultureSuffix}";
+ if (values.TryGetValue(key, out var v))
+ values[key] = new List