diff options
author | burnus%gmx.de <> | 2003-02-05 16:50:00 +0000 |
---|---|---|
committer | burnus%gmx.de <> | 2003-02-05 16:50:00 +0000 |
commit | 158ad973dc5b810aba2a34e382cb0edf577e87d5 (patch) | |
tree | 561f273a8ad69c282963c6092654c812a4811820 | |
parent | 5581985d252232132c0d822aff48d12b189a1740 (diff) | |
download | bugs-158ad973dc5b810aba2a34e382cb0edf577e87d5.tar bugs-158ad973dc5b810aba2a34e382cb0edf577e87d5.tar.gz bugs-158ad973dc5b810aba2a34e382cb0edf577e87d5.tar.bz2 bugs-158ad973dc5b810aba2a34e382cb0edf577e87d5.tar.xz bugs-158ad973dc5b810aba2a34e382cb0edf577e87d5.zip |
bug 191087 - process_bug.cgi: "Mid-air collision!" title when not allowed to change a field
r=gerv, a=justdave
-rwxr-xr-x | process_bug.cgi | 2 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 80b318a74..6505d6fcf 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 33ebb9472..dfb8af9fa 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 <strong>[% field %]</strong> field from <em>[% oldvalue FILTER html %]</em> to <em>[% newvalue FILTER html %]</em>, |