From bfc0c302f8167c09387c7964810295963cf70b90 Mon Sep 17 00:00:00 2001 From: Matteo Piovanelli Date: Thu, 4 Jul 2019 20:56:50 +0200 Subject: [PATCH] Fixes the bug by adding the correct binding source to the list (#8236) --- .../DisplayManagement/Implementation/DefaultDisplayManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs b/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs index d4a871661..79e67a1f8 100644 --- a/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs +++ b/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs @@ -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 {