mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixes the bug by adding the correct binding source to the list (#8236)
This commit is contained in:
committed by
Sébastien Ros
parent
46f76d7140
commit
bfc0c302f8
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user