diff options
author | Gervase Markham <gerv@gerv.net> | 2014-01-27 15:59:36 +0100 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2014-01-27 15:59:36 +0100 |
commit | 10cc520ecb23683b3ae83a817e4457bc2fdc01fb (patch) | |
tree | 7e56e83fb71bc23066ddc7a99c1589cb3419931e /Bugzilla/Bug.pm | |
parent | eb7d562ca51276b6f448a1ae0e676132c7d35b03 (diff) | |
download | bugzilla-10cc520ecb23683b3ae83a817e4457bc2fdc01fb.tar.gz bugzilla-10cc520ecb23683b3ae83a817e4457bc2fdc01fb.tar.xz |
Bug 939838 - Kill Bugzilla::User::user_id_to_login function. r=LpSolit, a=justdave.
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index b4e8c361a..95bf293a5 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2187,8 +2187,8 @@ sub _set_global_validator { my $can = $self->check_can_change_field($field, $current, $value, \$privs); if (!$can) { if ($field eq 'assigned_to' || $field eq 'qa_contact') { - $value = user_id_to_login($value); - $current = user_id_to_login($current); + $value = Bugzilla::User->new($value)->login; + $current = Bugzilla::User->new($current)->login; } ThrowUserError('illegal_change', { field => $field, oldvalue => $current, |