summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-16 06:51:34 +0100
committerlpsolit%gmail.com <>2006-03-16 06:51:34 +0100
commit311eb45dbd343068dce41bb44dd8db9f8108cf7e (patch)
tree34c2f43c62b24714389d1ef5a3fa79175cbc593b /post_bug.cgi
parentd19c2c5203d27955941e51bf75415c88e611b7b4 (diff)
downloadbugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.gz
bugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.xz
Bug 330521: Remove @::legal_product, @::legal_components and @::legal_target_milestone - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index de8063543..dd699e668 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -44,7 +44,6 @@ sub sillyness {
$zz = @::legal_opsys;
$zz = @::legal_platform;
$zz = @::legal_priority;
- $zz = @::legal_product;
$zz = @::legal_severity;
$zz = %::target_milestone;
}
@@ -219,7 +218,8 @@ if (!Param('letsubmitterchoosepriority')) {
GetVersionTable();
# Some more sanity checking
-check_field('product', scalar $cgi->param('product'), \@::legal_product);
+check_field('product', scalar $cgi->param('product'),
+ [map($_->name, Bugzilla::Product::get_all_products())]);
check_field('rep_platform', scalar $cgi->param('rep_platform'), \@::legal_platform);
check_field('bug_severity', scalar $cgi->param('bug_severity'), \@::legal_severity);
check_field('priority', scalar $cgi->param('priority'), \@::legal_priority);