summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-04 22:58:43 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-04 22:58:59 +0200
commit746bdf1db9c10d1e5fc8fc66a0ce876aa29f92da (patch)
tree51a766d5e4732ae88707152e11e785bc90d5e266 /extensions/Needinfo
parentb9d6d8634866ab5687eafbdda4159b39aae392ff (diff)
downloadbugzilla-746bdf1db9c10d1e5fc8fc66a0ce876aa29f92da.tar.gz
bugzilla-746bdf1db9c10d1e5fc8fc66a0ce876aa29f92da.tar.xz
Bug 1321595 - Add triage owner to the needinfo suggestion dropdown
Diffstat (limited to 'extensions/Needinfo')
-rw-r--r--extensions/Needinfo/Extension.pm5
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl3
2 files changed, 8 insertions, 0 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index 0c8c88a87..3b99b5a44 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -134,6 +134,11 @@ sub bug_start_of_update {
elsif ($needinfo_role eq 'user') {
$requestees{$user->login} = 1;
}
+ elsif ($needinfo_role eq 'triage_owner') {
+ if ($bug->component_obj->triage_owner_id) {
+ $requestees{$bug->component_obj->triage_owner->login} = 1;
+ }
+ }
# Use user specified requestee
elsif ($needinfo_role eq 'other' && $needinfo_from) {
my @needinfo_from_list = ref $needinfo_from
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 5b316e4b0..111d8885a 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -218,6 +218,9 @@ $(function() {
[% available_mentors.size == 1 ? "mentor" : mentor.login FILTER html %]
</option>
[% END %]
+ [% IF bug.component_obj.triage_owner_id %]
+ <option value="triage_owner">triage owner</option>
+ [% END %]
</select>
<span id="needinfo_from_container">
[% INCLUDE global/userselect.html.tmpl