diff options
-rwxr-xr-x | enter_bug.cgi | 1 | ||||
-rwxr-xr-x | post_bug.cgi | 5 | ||||
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index c0d8f59ee..a7e76ba76 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -313,6 +313,7 @@ else { $vars->{'blocked'} = formvalue('blocked'); $vars->{'deadline'} = formvalue('deadline'); $vars->{'estimated_time'} = formvalue('estimated_time'); + $vars->{'bug_ignored'} = formvalue('bug_ignored'); $vars->{'cc'} = join(', ', $cgi->param('cc')); diff --git a/post_bug.cgi b/post_bug.cgi index a201393c1..87ebba9c4 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -218,6 +218,11 @@ if (defined($cgi->upload('data')) || $cgi->param('attach_text')) { } } +# Set bug_ignored from the hidden field +if (scalar $cgi->param('bug_ignored')) { + $bug->set_bug_ignored(1); +} + # Set bug flags. my ($flags, $new_flags) = Bugzilla::Flag->extract_flags_from_cgi($bug, undef, $vars, SKIP_REQUESTEE_ON_ERROR); diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 3eed01124..9deabac26 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -199,6 +199,7 @@ TUI_hide_default('attachment_text_field'); onsubmit="return validateEnterBug(this)"> <input type="hidden" name="product" value="[% product.name FILTER html %]"> <input type="hidden" name="token" value="[% token FILTER html %]"> +<input type="hidden" name="bug_ignored" value="[% bug_ignored ? "1" : "0" %]"> <table> <tbody> |