push(@supptables,"INNER JOIN longdescs AS $table ".
"ON $table.bug_id = bugs.bug_id");
$f="$table.work_time";
},
"^percentage_complete,"=>sub {
...
...
@@ -703,8 +718,8 @@ sub init {
}
if($operne"noop"){
my$table="longdescs_$chartid";
push(@supptables,"longdescs $table");
push(@wherepart,"$table.bug_id = bugs.bug_id");
push(@supptables,"INNER JOIN longdescs AS $table ".
"ON $table.bug_id = bugs.bug_id");
my$field="(100*((SUM($table.work_time)*COUNT(DISTINCT $table.bug_when)/COUNT(bugs.bug_id))/((SUM($table.work_time)*COUNT(DISTINCT $table.bug_when)/COUNT(bugs.bug_id))+bugs.remaining_time))) AS percentage_complete_$table";
push(@fields,$field);
push(@having,
...
...
@@ -713,18 +728,23 @@ sub init {
$term="0=0";
},
"^bug_group,(?!changed)"=>sub {
push(@supptables,"LEFT JOIN bug_group_map bug_group_map_$chartid ON bugs.bug_id = bug_group_map_$chartid.bug_id");
push(@supptables,
"LEFT JOIN bug_group_map AS bug_group_map_$chartid ".