From 60077743eb60e924a1b39b488d47e3170465d131 Mon Sep 17 00:00:00 2001 From: Hazzamanic Date: Mon, 4 Dec 2017 18:09:39 +0000 Subject: [PATCH] #7794 make shape descriptor key comparison case insensitive (#7904) --- .../Services/ContentTypePlacementStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentTypePlacementStrategy.cs b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentTypePlacementStrategy.cs index 374da309a..fbca12a63 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentTypePlacementStrategy.cs +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentTypePlacementStrategy.cs @@ -29,7 +29,7 @@ namespace Orchard.ContentTypes.Services { var allPlacements = typeDefinitions.SelectMany(td => td.GetPlacement(PlacementType.Editor).Select(p => new TypePlacement { Placement = p, ContentType = td.Name }) ); // group all placement settings by shape type - var shapePlacements = allPlacements.GroupBy(x => x.Placement.ShapeType).ToDictionary(x => x.Key, y=> y.ToList()); + var shapePlacements = allPlacements.GroupBy(x => x.Placement.ShapeType).ToDictionary(x => x.Key, y=> y.ToList(), StringComparer.OrdinalIgnoreCase); // create a new predicate in a ShapeTableDescriptor has a custom placement foreach(var shapeType in shapeTable.Descriptors.Keys) {