From d10dc31898f6d8f9760d67b2fdb10ca2e5c2698f Mon Sep 17 00:00:00 2001 From: Bertrand Le Roy Date: Fri, 7 Feb 2014 23:06:20 -0800 Subject: [PATCH] This simple change makes it possible to call Display on the same pager twice, which is an important scenario (display pager on top and bottom of list). --- src/Orchard.Web/Core/Shapes/CoreShapes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Shapes/CoreShapes.cs b/src/Orchard.Web/Core/Shapes/CoreShapes.cs index f81be0d1c..361c0449e 100644 --- a/src/Orchard.Web/Core/Shapes/CoreShapes.cs +++ b/src/Orchard.Web/Core/Shapes/CoreShapes.cs @@ -618,7 +618,7 @@ namespace Orchard.Core.Shapes { IEnumerable classes = Shape.Classes; IDictionary attributes = Shape.Attributes; - attributes.Add("href", action); + attributes["href"] = action; string id = Shape.Id; var tag = GetTagBuilder("a", id, classes, attributes); tag.InnerHtml = EncodeOrDisplay(Value, Display, Html).ToString();