Skip to content

Commit

Permalink
[Fixes OrchardCMS#7258] Orchard.Core - Tabbed groupby breaks priority (
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpHarry committed Oct 21, 2016
1 parent fef68ad commit 7a16cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orchard.Web/Core/Shapes/CoreShapes.cs
Expand Up @@ -283,7 +283,7 @@ Work<IShapeFactory> shapeFactory
[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) {
Expand Down

0 comments on commit 7a16cf5

Please sign in to comment.