summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-08-31 03:19:08 +0200
committerDylan William Hardison <dylan@hardison.net>2016-08-31 03:26:28 +0200
commiteced5d2c4b2d154a5a6ec8c27e8ac10973dc4e0c (patch)
treeeae8029b2c3df33595b7d49533ff45705a2ceea5 /enter_bug.cgi
parentcd6e13943b9816f0ed2ad6702901125544527fa2 (diff)
downloadbugzilla-eced5d2c4b2d154a5a6ec8c27e8ac10973dc4e0c.tar.gz
bugzilla-eced5d2c4b2d154a5a6ec8c27e8ac10973dc4e0c.tar.xz
Backout Bug 1299280 and Bug 1294478
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi29
1 files changed, 1 insertions, 28 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index a13515f3d..afaffd752 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -52,7 +52,6 @@ use Bugzilla::Token;
use Bugzilla::Field;
use Bugzilla::Status;
use Bugzilla::UserAgent;
-use JSON::XS qw(encode_json);
my $user = Bugzilla->login(LOGIN_REQUIRED);
@@ -439,33 +438,7 @@ my $format = $template->get_format("bug/create/create",
scalar $cgi->param('format'),
scalar $cgi->param('ctype'));
-my %data;
-my $count = 0;
-foreach my $c (@{ $product->components }) {
- next if not $c->is_active;
- $data{components}[$count] = $c->name;
- $data{comp_desc}[$count] = $c->description;
- $data{initialowners}[$count] = $c->default_assignee->login;
- my @flag_list;
- foreach my $f (@{ $c->flag_types->{bug} }) {
- push @flag_list, $f->id;
- }
- foreach my $f (@{ $c->flag_types->{attachment} }) {
- push @flag_list, $f->id;
- }
- $data{flags}[$count] = \@flag_list;
- $count++;
- if (Bugzilla->params->{'useqacontact'}) {
- $data{initialqacontacts}[$count] = $c->default_qa_contact->login;
- }
- my @initial_cc_list;
- foreach my $cc_user (@{ $c->initial_cc }) {
- push @initial_cc_list, $cc_user->login;
- }
- $data{initialccs}[$count] = join(', ', @initial_cc_list);
-}
-$vars->{data} = encode_json(\%data);
print $cgi->header($format->{'ctype'});
$template->process($format->{'template'}, $vars)
- || ThrowTemplateError($template->error());
+ || ThrowTemplateError($template->error());