* Code for task#53661.

This commit is contained in:
xieqiyu
2022-05-12 08:15:25 +08:00
parent ce7c0afdc1
commit 691de86d4a
3 changed files with 10 additions and 6 deletions
+3 -1
View File
@@ -1163,7 +1163,8 @@ class execution extends control
/* Get date list. */
$executionInfo = $this->execution->getByID($executionID);
$endDate = strpos($type, 'withdelay') !== false ? helper::today() : $executionInfo->end;
$deadline = $execution->status != 'closed' ? helper::today() : substr($execution->closedDate, 0, 10);
$endDate = strpos($type, 'withdelay') !== false ? $deadline : $executionInfo->end;
list($dateList, $interval) = $this->execution->getDateList($executionInfo->begin, $endDate, $type, $interval, 'Y-m-d');
$chartData = $this->execution->buildBurnData($executionID, $dateList, $type, $burnBy);
@@ -1928,6 +1929,7 @@ class execution extends control
if(!empty($_POST))
{
$this->loadModel('action');
$this->execution->computeBurn($executionID);
$changes = $this->execution->close($executionID);
if(dao::isError()) return print(js::error(dao::getError()));