summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2014-01-27 15:59:36 +0100
committerGervase Markham <gerv@mozilla.org>2014-01-27 15:59:36 +0100
commit10cc520ecb23683b3ae83a817e4457bc2fdc01fb (patch)
tree7e56e83fb71bc23066ddc7a99c1589cb3419931e /extensions
parenteb7d562ca51276b6f448a1ae0e676132c7d35b03 (diff)
downloadbugzilla-10cc520ecb23683b3ae83a817e4457bc2fdc01fb.tar.gz
bugzilla-10cc520ecb23683b3ae83a817e4457bc2fdc01fb.tar.xz
Bug 939838 - Kill Bugzilla::User::user_id_to_login function. r=LpSolit, a=justdave.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Voting/Extension.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm
index aa93ec235..e54a2aab0 100644
--- a/extensions/Voting/Extension.pm
+++ b/extensions/Voting/Extension.pm
@@ -656,8 +656,8 @@ sub _modify_bug_votes {
# If some votes are removed, _remove_votes() returns a list
# of messages to send to voters.
push(@msgs, _remove_votes($id, $who, 'votes_too_many_per_bug'));
- my $name = user_id_to_login($who);
-
+ my $name = Bugzilla::User->new($who)->login;
+
push(@toomanyvotes_list, {id => $id, name => $name});
}
}
@@ -697,12 +697,12 @@ sub _modify_bug_votes {
AND votes.who = ?',
undef, $product->id, $who);
+ my $name = Bugzilla::User->new($who)->login;
foreach my $bug_id (@$bug_ids) {
# _remove_votes returns a list of messages to send
# in case some voters had too many votes.
push(@msgs, _remove_votes($bug_id, $who,
'votes_too_many_per_user'));
- my $name = user_id_to_login($who);
push(@toomanytotalvotes_list, {id => $bug_id, name => $name});
}