From a6f98de0d4e842351222b0173a1fff151da8738e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 3 Jul 2017 16:48:52 -0700 Subject: Revert "Bug 1365345 - Modal Bug Entry Prototype" This reverts commit 8835db60a8d637fe3aec82c718bad8a8177a6acf. --- new_bug.cgi | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'new_bug.cgi') diff --git a/new_bug.cgi b/new_bug.cgi index 2a56550e6..ec67980b9 100644 --- a/new_bug.cgi +++ b/new_bug.cgi @@ -43,27 +43,8 @@ my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; my $vars = {}; -if (lc($cgi->request_method) eq 'post') { - my $token = $cgi->param('token'); - check_hash_token($token, ['new_bug']); - my $new_bug = Bugzilla::Bug->create({ - short_desc => $cgi->param('short_desc'), - product => $cgi->param('product'), - component => $cgi->param('component'), - bug_severity => 'normal', - groups => [], - op_sys => 'Unspecified', - rep_platform => 'Unspecified', - version => join(' ', split('_', $cgi->param('version'))), - cc => [], - comment => $cgi->param('comment'), - }); - delete_token($token); - print $cgi->redirect(correct_urlbase() . 'show_bug.cgi?id='.$new_bug->bug_id); -} else { - print $cgi->header(); +print $cgi->header(); $template->process("bug/new_bug.html.tmpl", $vars) - or ThrowTemplateError($template->error()); -} + or ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b