summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-10-26 10:01:41 +0200
committerbbaetz%student.usyd.edu.au <>2002-10-26 10:01:41 +0200
commit37993682fd10962e944a1e5bf9633c7b08ad49e6 (patch)
treeaed6219d3fba994c78ec431338c4bdec6425741a /query.cgi
parent4888825a13fda24c0bbe644af27f7c2d2a061969 (diff)
downloadbugzilla-37993682fd10962e944a1e5bf9633c7b08ad49e6.tar.gz
bugzilla-37993682fd10962e944a1e5bf9633c7b08ad49e6.tar.xz
Bug 171278 - component/product ids mean that you can't do change queries on
component/product r=gerv
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 {