MvcExtensions / Core

MvcExtensions - Extend everything
Microsoft Public License
52 stars 17 forks source link

RenderActionSetting missing area bug #11

Closed WiseBird closed 11 years ago

WiseBird commented 11 years ago

Hi.

I encountered a bug while using RenderActionSetting set upped with helper methods from https://github.com/MvcExtensions/Core/blob/master/src/MvcExtensions.FluentMetadata/ModelMetadata/ModelMetadataItemBuilderRenderActionExtensions.cs

This bug affects methods which accept RouteValueDictionary. These methods pass dictionary to the HtmlHelper.Action where "area" entry is removed from it. So second use of RenderActionSetting leads to error.

http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Html/ChildActionExtensions.cs

screen

hazzik commented 11 years ago

Hi, thanks for reporting.

Do you think if clone of route dictionary will solve the problem?

WiseBird commented 11 years ago

Yes, for sure. RouteValueDictionary's constructor will do the trick.