summaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-09-27 15:55:12 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-09-27 15:55:12 +0200
commit8affa3eab39d5b438067f3b5b0490be597b19bbc (patch)
treebf288ce157376b3166e6e5c62c65c7dfe91578c7 /editcomponents.cgi
parent0ebea6d9fac5b7da3844829883ee76707c711061 (diff)
downloadbugzilla-8affa3eab39d5b438067f3b5b0490be597b19bbc.tar.gz
bugzilla-8affa3eab39d5b438067f3b5b0490be597b19bbc.tar.xz
ug 1268317 - Add Triage Contact to Components as an Editable Field (everything else)
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi6
1 files changed, 6 insertions, 0 deletions
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();