From 10cc520ecb23683b3ae83a817e4457bc2fdc01fb Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Mon, 27 Jan 2014 14:59:36 +0000 Subject: Bug 939838 - Kill Bugzilla::User::user_id_to_login function. r=LpSolit, a=justdave. --- Bugzilla/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Bug.pm') 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, -- cgit v1.2.3-24-g4f1b