mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#17764: Core Shapes can't be overriden
Work Items: 17764 --HG-- branch : 1.x
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Orchard.DisplayManagement.Descriptors {
|
||||
(descriptor, alteration) => {
|
||||
alteration.Alter(descriptor);
|
||||
return descriptor;
|
||||
}));
|
||||
})).ToList();
|
||||
|
||||
return new ShapeTable {
|
||||
Descriptors = descriptors.ToDictionary(sd => sd.ShapeType, StringComparer.OrdinalIgnoreCase),
|
||||
|
@@ -55,6 +55,8 @@ namespace Orchard.DisplayManagement.Descriptors {
|
||||
return target(displayContext);
|
||||
}
|
||||
};
|
||||
|
||||
// ShapeDescriptor.Bindings is a case insensitive dictionary
|
||||
descriptor.Bindings[_bindingName] = binding;
|
||||
|
||||
});
|
||||
|
@@ -12,7 +12,7 @@ namespace Orchard.DisplayManagement.Descriptors {
|
||||
Displaying = Enumerable.Empty<Action<ShapeDisplayingContext>>();
|
||||
Displayed = Enumerable.Empty<Action<ShapeDisplayedContext>>();
|
||||
Wrappers = new List<string>();
|
||||
Bindings = new Dictionary<string, ShapeBinding>();
|
||||
Bindings = new Dictionary<string, ShapeBinding>(StringComparer.OrdinalIgnoreCase);
|
||||
Placement = ctx => new PlacementInfo {Location = DefaultPlacement};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user