From: burnus%gmx.de <>
Date: Wed, 5 Feb 2003 16:50:00 +0000 (+0000)
Subject: bug 191087 - process_bug.cgi: "Mid-air collision!" title when not allowed to change...
X-Git-Tag: bugzilla-2.17.4~88
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=158ad973dc5b810aba2a34e382cb0edf577e87d5;p=thirdparty%2Fbugzilla.git
bug 191087 - process_bug.cgi: "Mid-air collision!" title when not allowed to change a field
r=gerv, a=justdave
---
diff --git a/process_bug.cgi b/process_bug.cgi
index 80b318a746..6505d6fcf2 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -1108,7 +1108,7 @@ foreach my $id (@idlist) {
if (!CheckCanChangeField($col, $id, $oldvalues[$i], $::FORM{$col})) {
# More fun hacking... don't display component_id
if ($col eq 'component_id') {
- $vars->{'oldvalue'} = get_component_name($product_id, $oldhash{'component_id'});
+ $vars->{'oldvalue'} = get_component_name($oldhash{'component_id'});
$vars->{'newvalue'} = $::FORM{'component'};
$vars->{'field'} = 'component';
}
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 33ebb9472e..dfb8af9fab 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -213,6 +213,7 @@
0 and 1.
[% ELSIF error == "illegal_change" %]
+ [% title = "Not allowed" %]
You tried to change the [% field %] field
from [% oldvalue FILTER html %] to
[% newvalue FILTER html %],