diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-03-18 05:27:33 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-18 05:27:33 +0100 |
commit | 58137cf628bb0989a671e896a2f8b9021c6d60a4 (patch) | |
tree | 6e66da38a558f1811b4089c56a1414c3acbec3e7 /editproducts.cgi | |
parent | 9a9a5a5229f102fdb629029bed7a200cde6a5a68 (diff) | |
download | bugzilla-58137cf628bb0989a671e896a2f8b9021c6d60a4.tar.gz bugzilla-58137cf628bb0989a671e896a2f8b9021c6d60a4.tar.xz |
Revert "Merge remote-tracking branch 'dylanwh/unextend-schema' into unstable"
This reverts commit b70a4853a02d9011a3f0ba2a1d563df18810c934, reversing
changes made to de95ef821f24d08c629ac764c7524970f968d70c.
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 26 |
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); |