aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-23 04:45:32 +0000
committerlpsolit%gmail.com <>2005-08-23 04:45:32 +0000
commit31c2e0de3ac68bac347c0a529a96a8d63be82d05 (patch)
treec43a3d38218105818b25973fa7c24f993ce4460c /editcomponents.cgi
parentBug 292886: X-Bugzilla-Product and X-Bugzilla-Component headers should exist ... (diff)
downloadbugzilla-31c2e0de3ac68bac347c0a529a96a8d63be82d05.tar.gz
bugzilla-31c2e0de3ac68bac347c0a529a96a8d63be82d05.tar.bz2
bugzilla-31c2e0de3ac68bac347c0a529a96a8d63be82d05.zip
Bug 189635: editcomponents.cgi should use user-matching for the default assignee and QA contact - Patch by GavinS <bugzilla@chimpychompy.org> r=LpSolit a=justdave
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi14
1 files changed, 14 insertions, 0 deletions
diff --git a/editcomponents.cgi b/editcomponents.cgi
index 31b0a1171..dd0711e56 100755
--- a/editcomponents.cgi
+++ b/editcomponents.cgi
@@ -286,6 +286,13 @@ if ($action eq 'new') {
{'name' => $component});
}
+ # Do the user matching
+ Bugzilla::User::match_field ($cgi, {
+ 'initialowner' => { 'type' => 'single' },
+ 'initialqacontact' => { 'type' => 'single' },
+ });
+
+
my $initialowner = trim($cgi->param('initialowner') || '');
if ($initialowner eq '') {
@@ -533,6 +540,13 @@ if ($action eq 'edit') {
if ($action eq 'update') {
+ # Do the user matching
+ Bugzilla::User::match_field ($cgi, {
+ 'initialowner' => { 'type' => 'single' },
+ 'initialqacontact' => { 'type' => 'single' },
+ });
+
+
my $componentold = trim($cgi->param('componentold') || '');
my $description = trim($cgi->param('description') || '');
my $descriptionold = trim($cgi->param('descriptionold') || '');