summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-03-11 17:50:59 +0100
committerlpsolit%gmail.com <>2007-03-11 17:50:59 +0100
commit065fa87760272df3ee648b8e09b24eba8d369944 (patch)
tree028ec02c638822b4570ba5367ce6473fcf65b0ed
parent429fad7946e7461b2c3069ba292b3a5e95e2f825 (diff)
downloadbugzilla-065fa87760272df3ee648b8e09b24eba8d369944.tar.gz
bugzilla-065fa87760272df3ee648b8e09b24eba8d369944.tar.xz
Bug 371774: process_bug.cgi should only validate longdesclength on mid-air collision - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
-rwxr-xr-xprocess_bug.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index a8603dc44..6128bcf65 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -257,6 +257,8 @@ if (defined $cgi->param('id')) {
if (defined $cgi->param('delta_ts') && $cgi->param('delta_ts') ne $delta_ts)
{
$vars->{'title_tag'} = "mid_air";
+ ThrowCodeError('undefined_field', {field => 'longdesclength'})
+ if !defined $cgi->param('longdesclength');
}
}
@@ -537,9 +539,6 @@ if (defined $cgi->param('id')) {
$bug->_check_priority($cgi->param('priority')));
$cgi->param('bug_severity',
$bug->_check_bug_severity($cgi->param('bug_severity')));
-
- ThrowCodeError('undefined_field', { field => 'longdesclength' })
- if !defined $cgi->param('longdesclength');
$cgi->param('bug_file_loc',
$bug->_check_bug_file_loc($cgi->param('bug_file_loc')));
$cgi->param('short_desc',