From: bugreport%peshkin.net <> Date: Tue, 22 Oct 2002 13:00:52 +0000 (+0000) Subject: Bugzilla Bug 175625 Timetracking columns are computed even if not displayed X-Git-Tag: bugzilla-2.17.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbdc386bdb1a32e8277dec182004c9acb682d27;p=thirdparty%2Fbugzilla.git Bugzilla Bug 175625 Timetracking columns are computed even if not displayed Patch by jeff.hedlund r=dkl,joel --- diff --git a/buglist.cgi b/buglist.cgi index f5a7b65f1c..74015bc2ab 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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"); }