summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-05-11 19:41:56 +0200
committerGitHub <noreply@github.com>2017-05-11 19:41:56 +0200
commitf472f02087a8cbdc209d5cedf857643eec827174 (patch)
tree4a3fcbf0282261f7df2c49c3ca16953a9c46ab5c /Bugzilla/User.pm
parent89e44aca00a15587be9b19658df44261344ec02b (diff)
downloadbugzilla-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/User.pm')
-rw-r--r--Bugzilla/User.pm6
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 {