summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-01-29 18:23:13 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-01-29 18:23:13 +0100
commit89d319922df1160f346321acfa6a9c5d69b5ed43 (patch)
tree7281a5c3d37fb4d6dd44949cc74be84275cfdee2 /extensions
parentece0cae03492b7240845ac08f005c1a1d9cc862f (diff)
downloadbugzilla-89d319922df1160f346321acfa6a9c5d69b5ed43.tar.gz
bugzilla-89d319922df1160f346321acfa6a9c5d69b5ed43.tar.xz
Bug 1059419: Needinfo-ing a mentor doesnt work
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Needinfo/Extension.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index 2a4bfa3b3..26bca649e 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -121,6 +121,12 @@ sub bug_start_of_update {
$requestees{$requestee_obj->login} = 1;
}
}
+ # Requestee is a mentor
+ elsif ($needinfo_role
+ && Bugzilla::User->check({ name => $needinfo_role, cache => 1 }))
+ {
+ $requestees{$needinfo_role} = 1;
+ }
# Find out if the requestee has already been used and skip if so
my $requestee_found;