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

Fixes #7258
This commit is contained in:
Matthew Harris
2016-10-20 20:33:20 +01:00
committed by Sébastien Ros
parent 5c430ef7d1
commit f37225dedd

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) {