Bug 171278 - component/product ids mean that you can't do change queries on

component/product r=gerv
parent 4888825a
...@@ -281,8 +281,21 @@ shift @::legal_resolution; ...@@ -281,8 +281,21 @@ shift @::legal_resolution;
# Another hack - this array contains "" for some reason. See bug 106589. # Another hack - this array contains "" for some reason. See bug 106589.
$vars->{'resolution'} = \@::legal_resolution; $vars->{'resolution'} = \@::legal_resolution;
my @chfields = @::log_columns; my @chfields;
push @chfields, "[Bug creation]"; push @chfields, "[Bug creation]";
# This is what happens when you have variables whose definition depends
# on the DB schema, and then the underlying schema changes...
foreach my $val (@::log_columns) {
if ($val eq 'product_id') {
$val = 'product';
} elsif ($val eq 'component_id') {
$val = 'component';
}
push @chfields, $val;
}
if (UserInGroup(Param('timetrackinggroup'))) { if (UserInGroup(Param('timetrackinggroup'))) {
push @chfields, "work_time"; push @chfields, "work_time";
} else { } else {
......
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