]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 189635: editcomponents.cgi should use user-matching for the default assignee...
authorlpsolit%gmail.com <>
Tue, 23 Aug 2005 04:45:32 +0000 (04:45 +0000)
committerlpsolit%gmail.com <>
Tue, 23 Aug 2005 04:45:32 +0000 (04:45 +0000)
editcomponents.cgi

index 31b0a1171fd36f4898db990c6bd5ca13703560a0..dd0711e569b5140a2f211a2e115723bbf6d280ed 100755 (executable)
@@ -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')      || '');