MantisBT: master 257c1fe1

Author Committer Branch Timestamp Parent
dregad dregad master 2014-12-09 06:23 master b751f3b1
Affected Issues  0017925: Order of notes in email notifications seem to be based on user who triggered the action
Changeset

New API current_user_set()

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 0017925 (porting 559ba4e43a2dc6c9f8fd6491f6279379734ac549)

mod - core/authentication_api.php Diff File
mod - core/current_user_api.php Diff File
mod - core/email_api.php Diff File