From f472f02087a8cbdc209d5cedf857643eec827174 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 11 May 2017 13:41:56 -0400 Subject: Bug 1357775 - the needinfo dropdown for the triage owner should display the name and email address when selected --- Bugzilla/User.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 69885f57c..05eaba099 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -651,6 +651,12 @@ sub mfa_provider { return $self->{mfa_provider}; } +sub name_or_login { + my $self = shift; + + return $self->name || $self->login; +} + # Generate a string to identify the user by name + login if the user # has a name or by login only if she doesn't. sub identity { -- cgit v1.2.3-24-g4f1b