summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi15
1 files changed, 14 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 973d1fdbc..18e6c7956 100755
--- a/query.cgi
+++ b/query.cgi
@@ -281,8 +281,21 @@ shift @::legal_resolution;
# Another hack - this array contains "" for some reason. See bug 106589.
$vars->{'resolution'} = \@::legal_resolution;
-my @chfields = @::log_columns;
+my @chfields;
+
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'))) {
push @chfields, "work_time";
} else {