aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-03-16 05:51:34 +0000
committerlpsolit%gmail.com <>2006-03-16 05:51:34 +0000
commit311eb45dbd343068dce41bb44dd8db9f8108cf7e (patch)
tree34c2f43c62b24714389d1ef5a3fa79175cbc593b /post_bug.cgi
parentBug 330519: Remove unused IsInClassification() function from globals.pl - Pat... (diff)
downloadbugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.gz
bugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.tar.bz2
bugzilla-311eb45dbd343068dce41bb44dd8db9f8108cf7e.zip
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);