]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bugzilla Bug 175625 Timetracking columns are computed even if not displayed
authorbugreport%peshkin.net <>
Tue, 22 Oct 2002 13:00:52 +0000 (13:00 +0000)
committerbugreport%peshkin.net <>
Tue, 22 Oct 2002 13:00:52 +0000 (13:00 +0000)
Patch by jeff.hedlund
r=dkl,joel

buglist.cgi

index f5a7b65f1c4e173057d805e8d4f57817edb12431..74015bc2ab758636dac8de2bcad6046a6f14edf4 100755 (executable)
@@ -449,7 +449,7 @@ if (!UserInGroup(Param("timetrackinggroup"))) {
 my @selectcolumns = ("id");
 
 # remaining and actual_time are required for precentage_complete calculation:
-if (lsearch(\@displaycolumns, "percentage_complete")) {
+if (lsearch(\@displaycolumns, "percentage_complete") >= 0) {
     push (@selectcolumns, "remaining_time");
     push (@selectcolumns, "actual_time");
 }