summaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-04-12 01:33:24 +0200
committerlpsolit%gmail.com <>2009-04-12 01:33:24 +0200
commita589e55a6f061ffbc223ccc99be1ff6052cf41bf (patch)
tree54aab3828565605b0fe1fbd97a5249fa5ac12b4a /editcomponents.cgi
parent0e4b2ce5a8e14a95d0eac6776731bcb37fec2741 (diff)
downloadbugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.gz
bugzilla-a589e55a6f061ffbc223ccc99be1ff6052cf41bf.tar.xz
Bug 487769: checksetup.pl can no longer create versions in TestProduct due to insufficient privileges (checksetup.pl fails) - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r/a=LpSolit
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi18
1 files changed, 11 insertions, 7 deletions
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;