summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-02-05 09:20:07 +0100
committerbbaetz%student.usyd.edu.au <>2002-02-05 09:20:07 +0100
commit9612f5b87b1503cdfc56c8170bead7cd47de783e (patch)
treed73242de3891ed50719cf2308f9aee8098ec1106 /post_bug.cgi
parent7fa045d01faf68f35814861d4c13ab8a7127c0d4 (diff)
downloadbugzilla-9612f5b87b1503cdfc56c8170bead7cd47de783e.tar.gz
bugzilla-9612f5b87b1503cdfc56c8170bead7cd47de783e.tar.xz
Bug 119715 - strictvaluechecks should always be enabled
r=justdave, gerv
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi32
1 files changed, 15 insertions, 17 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 361cba848..fa3fd075f 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -142,23 +142,21 @@ if (!exists $::FORM{'target_milestone'}) {
$::FORM{'target_milestone'} = FetchOneColumn();
}
-if ( Param("strictvaluechecks") ) {
- GetVersionTable();
- CheckFormField(\%::FORM, 'product', \@::legal_product);
- CheckFormField(\%::FORM, 'version', \@{$::versions{$::FORM{'product'}}});
- CheckFormField(\%::FORM, 'target_milestone',
- \@{$::target_milestone{$::FORM{'product'}}});
- CheckFormField(\%::FORM, 'rep_platform', \@::legal_platform);
- CheckFormField(\%::FORM, 'bug_severity', \@::legal_severity);
- CheckFormField(\%::FORM, 'priority', \@::legal_priority);
- CheckFormField(\%::FORM, 'op_sys', \@::legal_opsys);
- CheckFormFieldDefined(\%::FORM, 'assigned_to');
- CheckFormField(\%::FORM, 'bug_status', \@::legal_bug_status);
- CheckFormFieldDefined(\%::FORM, 'bug_file_loc');
- CheckFormField(\%::FORM, 'component',
- \@{$::components{$::FORM{'product'}}});
- CheckFormFieldDefined(\%::FORM, 'comment');
-}
+GetVersionTable();
+CheckFormField(\%::FORM, 'product', \@::legal_product);
+CheckFormField(\%::FORM, 'version', \@{$::versions{$::FORM{'product'}}});
+CheckFormField(\%::FORM, 'target_milestone',
+ \@{$::target_milestone{$::FORM{'product'}}});
+CheckFormField(\%::FORM, 'rep_platform', \@::legal_platform);
+CheckFormField(\%::FORM, 'bug_severity', \@::legal_severity);
+CheckFormField(\%::FORM, 'priority', \@::legal_priority);
+CheckFormField(\%::FORM, 'op_sys', \@::legal_opsys);
+CheckFormFieldDefined(\%::FORM, 'assigned_to');
+CheckFormField(\%::FORM, 'bug_status', \@::legal_bug_status);
+CheckFormFieldDefined(\%::FORM, 'bug_file_loc');
+CheckFormField(\%::FORM, 'component',
+ \@{$::components{$::FORM{'product'}}});
+CheckFormFieldDefined(\%::FORM, 'comment');
my @used_fields;
foreach my $f (@bug_fields) {