[Fixes #7258] Orchard.Core - Tabbed groupby breaks priority (#7336)

Fixes #7258
This commit is contained in:
Matthew Harris 2016-10-21 14:58:28 +01:00 committed by GitHub
parent fef68ad7ae
commit 7a16cf527c

View File

@ -283,7 +283,7 @@ namespace Orchard.Core.Shapes {
[Shape]
public void ContentZone(dynamic Display, dynamic Shape, TextWriter Output) {
var unordered = ((IEnumerable<dynamic>)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) {