* fix a bug for burn.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user