From 8affa3eab39d5b438067f3b5b0490be597b19bbc Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 27 Sep 2016 13:55:12 +0000 Subject: ug 1268317 - Add Triage Contact to Components as an Editable Field (everything else) --- editcomponents.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 9f59cda8f..6846fb4d9 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -107,12 +107,14 @@ if ($action eq 'new') { Bugzilla::User::match_field ({ 'initialowner' => { 'type' => 'single' }, 'initialqacontact' => { 'type' => 'single' }, + 'triage_owner' => { 'type' => 'single' }, 'initialcc' => { 'type' => 'multi' }, }); my $default_assignee = trim($cgi->param('initialowner') || ''); my $default_qa_contact = trim($cgi->param('initialqacontact') || ''); my $description = trim($cgi->param('description') || ''); + my $triage_owner = trim($cgi->param('triage_owner') || ''); my @initial_cc = $cgi->param('initialcc'); my $isactive = $cgi->param('isactive'); @@ -123,6 +125,7 @@ if ($action eq 'new') { initialowner => $default_assignee, initialqacontact => $default_qa_contact, initial_cc => \@initial_cc, + triage_owner_id => $triage_owner, # XXX We should not be creating series for products that we # didn't create series for. create_series => 1, @@ -209,6 +212,7 @@ if ($action eq 'update') { Bugzilla::User::match_field ({ 'initialowner' => { 'type' => 'single' }, 'initialqacontact' => { 'type' => 'single' }, + 'triage_owner' => { 'type' => 'single' }, 'initialcc' => { 'type' => 'multi' }, }); @@ -216,6 +220,7 @@ if ($action eq 'update') { my $default_assignee = trim($cgi->param('initialowner') || ''); my $default_qa_contact = trim($cgi->param('initialqacontact') || ''); my $description = trim($cgi->param('description') || ''); + my $triage_owner = trim($cgi->param('triage_owner') || ''); my @initial_cc = $cgi->param('initialcc'); my $isactive = $cgi->param('isactive'); @@ -226,6 +231,7 @@ if ($action eq 'update') { $component->set_description($description); $component->set_default_assignee($default_assignee); $component->set_default_qa_contact($default_qa_contact); + $component->set_triage_owner($triage_owner); $component->set_cc_list(\@initial_cc); $component->set_is_active($isactive); my $changes = $component->update(); -- cgit v1.2.3-24-g4f1b