* Merge commit b8841cd34d, fix bug #35137.g

This commit is contained in:
songchenxuan
2023-11-08 09:19:43 +08:00
parent 9173c8e107
commit 598dce1ebd
+9 -1
View File
@@ -3470,7 +3470,15 @@ class executionModel extends model
{
/* If executionBurnList > $itemCounts, split it, else call processBurnData() to pad burnList. */
$begin = helper::isZeroDate($executions[$executionID]->begin) ? $executions[$executionID]->openedDate : $executions[$executionID]->begin;
$executionBurnList = $this->processBurnData($executionBurnList, $this->config->execution->defaultBurnPeriod, $begin, $executions[$executionID]->end);
$end = $executions[$executionID]->end;
/* Unset burn information that is greater than the execution end date. */
foreach($executionBurnList as $date => $burnInfo)
{
if($date > $end) unset($executionBurns[$date]);
}
$executionBurnList = $this->processBurnData($executionBurnList, $this->config->execution->defaultBurnPeriod, $begin, $end);
/* Shorter names. */
foreach($executionBurnList as $executionBurn)