diff options
author | gerv%gerv.net <> | 2002-09-23 16:12:11 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2002-09-23 16:12:11 +0200 |
commit | cc5259d72abaf2fd8799fa153ac1428940e6a67b (patch) | |
tree | b4b338447c5f036b2edd53b5b594488154720158 /process_bug.cgi | |
parent | 91906ecaf434dda8b186f611b51c70a07d7662f6 (diff) | |
download | bugzilla-cc5259d72abaf2fd8799fa153ac1428940e6a67b.tar.gz bugzilla-cc5259d72abaf2fd8799fa153ac1428940e6a67b.tar.xz |
Bug 170064 - Change error API again to allow vars to be passed in the call. Patch by gerv; r=bbaetz.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 7325d4765..4ddfcca2c 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1067,7 +1067,7 @@ foreach my $id (@idlist) { $vars->{'oldvalue'} = $oldvalues[$i]; $vars->{'newvalue'} = $::FORM{$col}; $vars->{'field'} = $col; - ThrowUserError("illegal_change", "abort"); + ThrowUserError("illegal_change", undef, "abort"); } } $i++; @@ -1082,7 +1082,7 @@ foreach my $id (@idlist) { if ($value eq FetchOneColumn()) { SendSQL("UNLOCK TABLES"); $vars->{'bug_id'} = $id; - ThrowUserError("milestone_required", "abort"); + ThrowUserError("milestone_required", undef, "abort"); } } if (defined $::FORM{'delta_ts'} && $::FORM{'delta_ts'} ne $delta_ts) { @@ -1117,7 +1117,7 @@ foreach my $id (@idlist) { next if $i eq ""; if ($id eq $i) { - ThrowUserError("dependency_loop_single", "abort"); + ThrowUserError("dependency_loop_single", undef, "abort"); } if (!exists $seen{$i}) { push(@{$deptree{$target}}, $i); @@ -1161,7 +1161,7 @@ foreach my $id (@idlist) { } $vars->{'both'} = $both; - ThrowUserError("dependency_loop_multi", "abort"); + ThrowUserError("dependency_loop_multi", undef, "abort"); } } my $tmp = $me; |