diff options
author | lpsolit%gmail.com <> | 2005-08-29 02:52:00 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-29 02:52:00 +0200 |
commit | 830eca78e2f0e5526ff6d5c9ada3239b9175d4b4 (patch) | |
tree | f1c9324584ec1c04f42b3e4b5c319c234090504a | |
parent | f9923bc84e424f481122ee758b235d026aed80c2 (diff) | |
download | bugzilla-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.pm | 3 |
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) * |