From 31c2e0de3ac68bac347c0a529a96a8d63be82d05 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 23 Aug 2005 04:45:32 +0000 Subject: Bug 189635: editcomponents.cgi should use user-matching for the default assignee and QA contact - Patch by GavinS r=LpSolit a=justdave --- editcomponents.cgi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'editcomponents.cgi') 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') || ''); -- cgit v1.2.3-24-g4f1b