From 7a16cf527cb97cde450226cf70751e1f81ea7972 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Fri, 21 Oct 2016 14:58:28 +0100 Subject: [PATCH] [Fixes #7258] Orchard.Core - Tabbed groupby breaks priority (#7336) Fixes #7258 --- src/Orchard.Web/Core/Shapes/CoreShapes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Shapes/CoreShapes.cs b/src/Orchard.Web/Core/Shapes/CoreShapes.cs index 98722594c..c9b6d5aa6 100644 --- a/src/Orchard.Web/Core/Shapes/CoreShapes.cs +++ b/src/Orchard.Web/Core/Shapes/CoreShapes.cs @@ -283,7 +283,7 @@ namespace Orchard.Core.Shapes { [Shape] public void ContentZone(dynamic Display, dynamic Shape, TextWriter Output) { var unordered = ((IEnumerable)Shape).ToArray(); - var tabbed = unordered.GroupBy(x => (string)x.Metadata.Tab); + var tabbed = unordered.GroupBy(x => (string)x.Metadata.Tab ?? ""); if (tabbed.Count() > 1) { foreach (var tab in tabbed) {