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).

This commit is contained in:
Bertrand Le Roy
2014-02-07 23:06:20 -08:00
parent efa37e1d7a
commit d10dc31898

View File

@@ -618,7 +618,7 @@ namespace Orchard.Core.Shapes {
IEnumerable<string> classes = Shape.Classes;
IDictionary<string, string> 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();