summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-09-23 16:12:11 +0200
committergerv%gerv.net <>2002-09-23 16:12:11 +0200
commitcc5259d72abaf2fd8799fa153ac1428940e6a67b (patch)
treeb4b338447c5f036b2edd53b5b594488154720158 /process_bug.cgi
parent91906ecaf434dda8b186f611b51c70a07d7662f6 (diff)
downloadbugzilla-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-xprocess_bug.cgi8
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;