From 158ad973dc5b810aba2a34e382cb0edf577e87d5 Mon Sep 17 00:00:00 2001
From: "burnus%gmx.de" <>
Date: Wed, 5 Feb 2003 16:50:00 +0000
Subject: [PATCH] bug 191087 - process_bug.cgi: "Mid-air collision!" title when
not allowed to change a field r=gerv, a=justdave
---
process_bug.cgi | 2 +-
template/en/default/global/user-error.html.tmpl | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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 %],
--
2.47.2