Commit 158ad973 authored by burnus%gmx.de's avatar burnus%gmx.de

bug 191087 - process_bug.cgi: "Mid-air collision!" title when not allowed to change a field

r=gerv, a=justdave
parent 5581985d
......@@ -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';
}
......
......@@ -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>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment