From 2b5e7cf13015ff9b2c026dabe377c3fb3788367f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 7 Aug 2013 15:54:23 -0700 Subject: Bug 902681: Add the "Ignore all bugmail for this bug" field to the bug creation form as a hidden field --- post_bug.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'post_bug.cgi') 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); -- cgit v1.2.3-24-g4f1b