r2298 | GHendricks | 2006-10-12 12:20:28 -0600 (Thu, 12 Oct 2006) | 1 line
Changed paths: M /trunk/tr_new_run.cgi Creating a new run with "environment" left blank needs to throw error git-svn-id: svn://10.0.0.236/trunk@213555 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c7dfd5ab15
commit
8e47e3fc4b
@ -74,7 +74,10 @@ if ($action eq 'Add'){
|
||||
my $env = $cgi->param('environment');
|
||||
|
||||
ThrowUserError('testopia-missing-required-field', {'field' => 'summary'}) if $summary eq '';
|
||||
ThrowUserError('testopia-missing-required-field', {'field' => 'environment'}) if $env eq '';
|
||||
|
||||
validate_test_id($env, 'environment');
|
||||
|
||||
detaint_natural($status);
|
||||
detaint_natural($build);
|
||||
detaint_natural($pversion);
|
||||
@ -85,7 +88,6 @@ if ($action eq 'Add'){
|
||||
trick_taint($notes);
|
||||
trick_taint($prodver);
|
||||
|
||||
ThrowUserError('number_not_numeric', {'field' => 'environment', 'num' => $cgi->param('environment')}) if $env eq '';
|
||||
|
||||
if ($cgi->param('new_build')){
|
||||
my $new_build = $cgi->param('new_build');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user