diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-05-11 19:41:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-11 19:41:56 +0200 |
commit | f472f02087a8cbdc209d5cedf857643eec827174 (patch) | |
tree | 4a3fcbf0282261f7df2c49c3ca16953a9c46ab5c /Bugzilla | |
parent | 89e44aca00a15587be9b19658df44261344ec02b (diff) | |
download | bugzilla-f472f02087a8cbdc209d5cedf857643eec827174.tar.gz bugzilla-f472f02087a8cbdc209d5cedf857643eec827174.tar.xz |
Bug 1357775 - the needinfo dropdown for the triage owner should display the name and email address when selected
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/User.pm | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |