-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBS-13564: Correctly override primary on alias locale change
Attempting to change the locale of an alias marked as primary to one which already had a primary alias crashed with an ISE. I noticed the issue is that we were not clearing the previous primary value first for this case, since we were only looking for a changed primary_for_locale. In this case the locale changes, not the primary flag. This ensures primary is cleared upon either primary or locale changes if primary is being set or if it was already set and was not overriden by the row changes.
- Loading branch information
1 parent
7cc03f9
commit 0cb52d7
Showing
2 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters