summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-29 02:52:00 +0200
committerlpsolit%gmail.com <>2005-08-29 02:52:00 +0200
commit830eca78e2f0e5526ff6d5c9ada3239b9175d4b4 (patch)
treef1c9324584ec1c04f42b3e4b5c319c234090504a
parentf9923bc84e424f481122ee758b235d026aed80c2 (diff)
downloadbugzilla-830eca78e2f0e5526ff6d5c9ada3239b9175d4b4.tar.gz
bugzilla-830eca78e2f0e5526ff6d5c9ada3239b9175d4b4.tar.xz
Bug 306117: Search on "Percentage Completed" field returns "unknown column 'bugs.remaining_time' in 'having clause'" - Patch by Lance Larsh <lance.larsh@oracle.com> r=joel a=justdave
-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) *