summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-10-24 15:36:04 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-10-24 15:36:04 +0200
commit163958e1c3496f6d3cd3fc5202d1d5a2b0e22c12 (patch)
tree4a174a73d25d9678e22dcca65ddcfbe4729d851f /extensions
parentacb2992c9b3baf976346c6ce5ae60e107551134d (diff)
downloadbugzilla-163958e1c3496f6d3cd3fc5202d1d5a2b0e22c12.tar.gz
bugzilla-163958e1c3496f6d3cd3fc5202d1d5a2b0e22c12.tar.xz
Bug 803545 - Should be able to enter partial needinfo flag requestee
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Needinfo/Extension.pm5
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl10
-rw-r--r--extensions/Needinfo/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl11
3 files changed, 5 insertions, 21 deletions
diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm
index e47b3ed02..701c2de18 100644
--- a/extensions/Needinfo/Extension.pm
+++ b/extensions/Needinfo/Extension.pm
@@ -62,6 +62,11 @@ sub bug_end_of_update {
return if $params->{needinfo_done};
+ # do a match if applicable
+ Bugzilla::User::match_field({
+ 'needinfo_from' => { 'type' => 'single' }
+ });
+
my $needinfo = delete $params->{needinfo};
my $needinfo_from = delete $params->{needinfo_from};
my $needinfo_role = delete $params->{needinfo_role};
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 516ec0087..8810b5f21 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -83,14 +83,4 @@
</span>
[% END %]
</div>
- <script>
- // HACK: Shift the needinfo container to a different location
- // below commit button but before status drop down. This allows
- // for better tab navigation
- YAHOO.util.Event.onDOMReady(function() {
- var needinfo = YAHOO.util.Dom.get('needinfo_container');
- var status = YAHOO.util.Dom.get('bug_status_bottom');
- status.parentNode.insertBefore(needinfo, status);
- });
- </script>
[% END %]
diff --git a/extensions/Needinfo/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl b/extensions/Needinfo/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl
deleted file mode 100644
index 90f0cc584..000000000
--- a/extensions/Needinfo/template/en/default/hook/bug/edit-after_comment_textarea.html.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-[%# This Source Code Form is subject to the terms of the Mozilla Public
- # License, v. 2.0. If a copy of the MPL was not distributed with this
- # file, You can obtain one at http://mozilla.org/MPL/2.0/.
- #
- # This Source Code Form is "Incompatible With Secondary Licenses", as
- # defined by the Mozilla Public License, v. 2.0.
- #%]
-
-[% PROCESS bug/needinfo.html.tmpl
- bug = bug
-%]