Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The function sets the $g_cache_current_user_id global variable, and clears the user preferences cache ($g_cache_current_user_pref) if necessary. Using this new API to set the current user as opposed to working with $g_cache_current_user_id makes sure we always get the correct data from get_user_pref(). Resolves an issue where the order (as well as the number) of bugnotes in email notifications is based on the user who triggered the action, instead of the email's recipient. Fixes #17925 (porting 559ba4e)
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 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
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