summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Search.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 64342d17c..ae11dfa67 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -732,6 +732,9 @@ sub init {
}
if ($oper ne "noop") {
my $table = "longdescs_$chartid";
+ if(lsearch(\@fields, "bugs.remaining_time") == -1) {
+ push(@fields, "bugs.remaining_time");
+ }
push(@supptables, "INNER JOIN longdescs AS $table " .
"ON $table.bug_id = bugs.bug_id");
my $expression = "(100 * ((SUM($table.work_time) *