-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguity in LocalizedTaxonomyController action names #8785
Ambiguity in LocalizedTaxonomyController action names #8785
Conversation
Can you provide repro steps to compare before/after? |
The issue was easily reproducible when opening the edit page of an item containing a TaxonomyField. The ajax call in TaxonomyFieldList shape (https://github.com/LaserSrl/Orchard/blob/8ed7b67f1fc865e60b1de658b085fb49efb45151/src/Orchard.Web/Modules/Orchard.Taxonomies/Views/EditorTemplates/Fields/TaxonomyFieldList.cshtml#L13) failed, showing the "Loading taxonomy failed" alert message at line 136 of the same file. The error wasn't logged by Orchard, because it's a MVC error, but you can see it in the browser console:
I didn't notice this problem before PR #8780 was merged, because of the javascript syntax error blocking the proper execution of the code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small things noted, otherwise works great!
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/LocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/LocalizedTaxonomyController.cs
Show resolved
Hide resolved
Co-authored-by: Benedek Farkas <[email protected]>
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/AdminLocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/AdminLocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/AdminLocalizedTaxonomyController.cs
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/LocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/LocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/LocalizedTaxonomyController.cs
Outdated
Show resolved
Hide resolved
@AndreaPiovanelli please check the suggested changes and/or enable edits from maintainers. |
Co-authored-by: Benedek Farkas <[email protected]>
Co-authored-by: Benedek Farkas <[email protected]>
Co-authored-by: Benedek Farkas <[email protected]>
Co-authored-by: Benedek Farkas <[email protected]>
Co-authored-by: Benedek Farkas <[email protected]>
@BenedekFarkas I took some time to test your suggestions in our environment and have now applied the changes you requested to current pr branch. |
OK, thanks! |
This fixes an ambiguity issue for the GetTaxonomy action of LocalizedTaxonomyController. There was a "new GetTaxonomy" action in AdminLocalizedTaxonomyController too that was ambiguous, failing to properly work. For this reason, the action has been removed from AdminLocalizedTaxonomyController and the admin filter is added via override of the ApplyPreRequest function.