summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Needinfo')
-rw-r--r--extensions/Needinfo/Extension.pm4
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl3
2 files changed, 7 insertions, 0 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index b30750488..2a4bfa3b3 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -107,6 +107,10 @@ sub bug_start_of_update {
elsif ($needinfo_role eq 'qa_contact') {
$requestees{$bug->qa_contact->login} = 1;
}
+ # Use current user as requestee
+ elsif ($needinfo_role eq 'user') {
+ $requestees{$user->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 0755d449d..87dea003c 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -97,6 +97,8 @@
identity = '[% bug.assigned_to.realname || bug.assigned_to.login FILTER html FILTER js %]';
} else if (role == 'qa_contact') {
identity = '[% bug.qa_contact.realname || bug.qa_contact.login FILTER html FILTER js %]';
+ } else if (role == 'user') {
+ identity = '[% user.realname || user.login FILTER html FILTER js %]';
}
YAHOO.util.Dom.get('needinfo_role_identity').innerHTML = identity;
}
@@ -134,6 +136,7 @@
[% IF Param('useqacontact') && bug.qa_contact.login != "" %]
<option value="qa_contact">qa contact</option>
[% END %]
+ <option value="user">myself</option>
<option value="">anyone</option>
</select>
<span id="needinfo_from_container">