diff options
author | mkanat%bugzilla.org <> | 2006-07-19 06:10:31 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-19 06:10:31 +0200 |
commit | f27aaa287562fb880934565d6a091ab1674bfab4 (patch) | |
tree | ef713bebee235631f1435d0312a0494caed9c8c1 /post_bug.cgi | |
parent | aa205508ed3bc52b02cde76286daaec40aebfa5c (diff) | |
download | bugzilla-f27aaa287562fb880934565d6a091ab1674bfab4.tar.gz bugzilla-f27aaa287562fb880934565d6a091ab1674bfab4.tar.xz |
Bug 344521: Make custom fields optionally functional on enter_bug.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index b3f668e3f..083f577ac 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -172,10 +172,15 @@ if (!UserInGroup("editbugs") || $cgi->param('assigned_to') eq "") { -value => login_to_id(trim($cgi->param('assigned_to')), THROW_ERROR)); } + +my @enter_bug_field_names = map {$_->name} Bugzilla->get_fields({ custom => 1, + obsolete => 0, enter_bug => 1}); + my @bug_fields = ("version", "rep_platform", "bug_severity", "priority", "op_sys", "assigned_to", "bug_status", "everconfirmed", "bug_file_loc", "short_desc", - "target_milestone", "status_whiteboard"); + "target_milestone", "status_whiteboard", + @enter_bug_field_names); if (Bugzilla->params->{"usebugaliases"}) { my $alias = trim($cgi->param('alias') || ""); |