From a589e55a6f061ffbc223ccc99be1ff6052cf41bf Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sat, 11 Apr 2009 23:33:24 +0000 Subject: Bug 487769: checksetup.pl can no longer create versions in TestProduct due to insufficient privileges (checksetup.pl fails) - Patch by Max Kanat-Alexander r/a=LpSolit --- editcomponents.cgi | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'editcomponents.cgi') diff --git a/editcomponents.cgi b/editcomponents.cgi index 7623be591..c550f0d8c 100755 --- a/editcomponents.cgi +++ b/editcomponents.cgi @@ -129,13 +129,17 @@ if ($action eq 'new') { my $description = trim($cgi->param('description') || ''); my @initial_cc = $cgi->param('initialcc'); - my $component = - Bugzilla::Component->create({ name => $comp_name, - product => $product, - description => $description, - initialowner => $default_assignee, - initialqacontact => $default_qa_contact, - initial_cc => \@initial_cc }); + my $component = Bugzilla::Component->create({ + name => $comp_name, + product => $product, + description => $description, + initialowner => $default_assignee, + initialqacontact => $default_qa_contact, + initial_cc => \@initial_cc, + # XXX We should not be creating series for products that we + # didn't create series for. + create_series => 1, + }); $vars->{'message'} = 'component_created'; $vars->{'comp'} = $component; -- cgit v1.2.3-24-g4f1b