summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-18 05:27:33 +0100
committerDylan William Hardison <dylan@hardison.net>2018-03-18 05:27:33 +0100
commit58137cf628bb0989a671e896a2f8b9021c6d60a4 (patch)
tree6e66da38a558f1811b4089c56a1414c3acbec3e7 /editproducts.cgi
parent9a9a5a5229f102fdb629029bed7a200cde6a5a68 (diff)
downloadbugzilla-58137cf628bb0989a671e896a2f8b9021c6d60a4.tar.gz
bugzilla-58137cf628bb0989a671e896a2f8b9021c6d60a4.tar.xz
Revert "Merge remote-tracking branch 'dylanwh/unextend-schema' into unstable"
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi26
1 files changed, 8 insertions, 18 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 618aec547..a989e4bc1 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -158,19 +158,15 @@ if ($action eq 'new') {
check_token_data($token, 'add_product');
my %create_params = (
- classification => $classification_name,
- name => $product_name,
- description => scalar $cgi->param('description'),
- version => scalar $cgi->param('version'),
- defaultmilestone => scalar $cgi->param('defaultmilestone'),
- isactive => scalar $cgi->param('is_active'),
- create_series => scalar $cgi->param('createseries'),
- allows_unconfirmed => scalar $cgi->param('allows_unconfirmed'),
- default_platform_id => scalar $cgi->param('default_platform_id'),
- default_op_sys_id => scalar $cgi->param('default_op_sys_id'),
- security_group_id => scalar $cgi->param('security_group_id'),
+ classification => $classification_name,
+ name => $product_name,
+ description => scalar $cgi->param('description'),
+ version => scalar $cgi->param('version'),
+ defaultmilestone => scalar $cgi->param('defaultmilestone'),
+ isactive => scalar $cgi->param('is_active'),
+ create_series => scalar $cgi->param('createseries'),
+ allows_unconfirmed => scalar $cgi->param('allows_unconfirmed'),
);
-
my $product = Bugzilla::Product->create(\%create_params);
delete_token($token);
@@ -283,12 +279,6 @@ if ($action eq 'update') {
default_milestone => scalar $cgi->param('defaultmilestone'),
});
- foreach my $field (qw( default_platform_id default_op_sys_id security_group_id )) {
- my $value = $cgi->param($field);
- detaint_natural($value);
- $product->set($field, $value);
- }
-
my $changes = $product->update();
delete_token($token);