Skip to content
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

Resolved an issue where the wrong RedirectAfter tabs were showing for localized sites. #4851

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

valadas
Copy link
Contributor

@valadas valadas commented Oct 3, 2021

The settings for the current portal alias local were returned to the UI instead of the requested language picked in the Page Settings editor. This caused an issue where you would get let's say the English tabs for a french site setting if the last page you happened to visit was English instead of french. The user would then save any setting and all the RedirectAfters would save the wrong thing for that locale.

Closes #4232
Closes #4260

…r localized sites.

The settings for the current portal alias local where returned to the UI instead of the requested language picked in the Page Settings editor. This caused an issue where you would get let's say the english tabs for a french site settings if the last page you happend to visit was english instead of french. The user would then save any setting and all the RedirectAfters would save the wrong thing for that locale.

Closes dnnsoftware#4232
Closes dnnsoftware#4260
@valadas valadas added this to the 9.10.2 milestone Oct 3, 2021
@valadas
Copy link
Contributor Author

valadas commented Oct 3, 2021

For reviewers, the first commit is the fix and the second commit cleans this file a bit to reduce about 200 warnings.

@david-poindexter david-poindexter changed the title Resolved an issue where the wrong RedirectAfter tabs where showing for localized sites. Resolved an issue where the wrong RedirectAfter tabs were showing for localized sites. Oct 3, 2021
@mitchelsellers
Copy link
Contributor

Pulled this one locally seems to fix the issue on my site that was multi language. Do we think this fixes it for others too?

@valadas
Copy link
Contributor Author

valadas commented Oct 3, 2021

Do we think this fixes it for others too?

This kinda fixes two things

  1. the default value from the getter could have been null, now it would be -1
  2. on localized sites it would return the locale for the portal alias instead of the one for the currently selected language in the editor

So I do believe this should fix both problems.

Copy link
Contributor

@david-poindexter david-poindexter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome find and fix @valadas 🎉

@bdukes bdukes merged commit eb5e3ac into dnnsoftware:develop Oct 4, 2021
valadas added a commit to valadas/Dnn.Platform that referenced this pull request Oct 13, 2021
This is a follow up on dnnsoftware#4851

All my testing had been done on a localized site and after having those settings exist in the database.

@david-poindexter just found out it was problematic on a clean install as those settings simply do not exists and the code failed getting those settings values from the dictionary of settings. This PR solves that.
bdukes pushed a commit that referenced this pull request Oct 13, 2021
This is a follow up on #4851

All my testing had been done on a localized site and after having those settings exist in the database.

@david-poindexter just found out it was problematic on a clean install as those settings simply do not exists and the code failed getting those settings values from the dictionary of settings. This PR solves that.
@valadas valadas deleted the issue4232 branch April 14, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants