Fixes the bug by adding the correct binding source to the list (#8236)

This commit is contained in:
Matteo Piovanelli
2019-07-04 20:56:50 +02:00
committed by Sébastien Ros
parent 46f76d7140
commit bfc0c302f8

View File

@@ -97,6 +97,9 @@ namespace Orchard.DisplayManagement.Implementation {
// now find the actual binding to render, taking alternates into account
ShapeBinding actualBinding;
if ( TryGetDescriptorBinding(shapeMetadata.Type, shapeMetadata.Alternates, shapeTable, out actualBinding) ) {
// Add the BindingSource to the metadata, so it can be used as a scope
// for Localizers
shape.Metadata.BindingSources.Add(actualBinding.BindingSource);
shape.Metadata.ChildContent = Process(actualBinding, shape, context);
}
else {