* fix a bug for burn.

This commit is contained in:
wyd621
2013-09-22 09:51:27 +08:00
parent e2f40afb04
commit 9c3a12b11d
+1 -2
View File
@@ -709,6 +709,7 @@ class project extends control
$dateList = $this->project->getDateList($begin, $end, $type);
}
$sets = $this->project->getBurnDataFlot($project->id, $maxDays);
$limitJSON = '[]';
$baselineJSON = '[]';
if($projectInfo->days <= $maxDays)
@@ -728,8 +729,6 @@ class project extends control
$limitJSON = rtrim($limitJSON, ',') . ']';
}
$sets = $this->project->getBurnDataFlot($project->id, $maxDays);
$flotJSON['data'] = $this->report->createSingleJSON($sets, $dateList);
$flotJSON['limit'] = $limitJSON;
$flotJSON['baseline'] = $baselineJSON;