OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Encoding issue for taxonomies in the dynamic forms #7451

Closed mhodorogea closed 7 years ago

mhodorogea commented 8 years ago

Hello, I noticed that when we use the taxonomies in the dynamic forms, it doesn't respect the proper encoding. In result we have the following :

If you have any ideas about how to solve this, please write it down ;)

mhodorogea commented 8 years ago

It seems that the error comes from Orchard.DynamicForms.Drivers the class : TaxonomyElementDriver and more precise the function : private IEnumerable<SelectListItem> GetTermOptions(Taxonomy element, string displayType, int? taxonomyId, IDictionary<string, object> tokenData)

What do you think ?

sebastienros commented 8 years ago

dynamic forms I didn't see that ... @sfmskywalker

mhodorogea commented 8 years ago

Hello ! I just created a pull request to fix this issue. https://github.com/OrchardCMS/Orchard/pull/7458

I modified two lines only :)

What do you think about this correction? Thanks @sebastienros @sfmskywalker