* Fix bug #35137, unset burn info that is greater than execution end.

This commit is contained in:
songchenxuan
2023-05-16 13:31:16 +08:00
parent 7466c2dbd7
commit b8841cd34d
+6
View File
@@ -4091,6 +4091,12 @@ class executionModel extends model
$begin = $executions[$executionID]->begin;
$end = $executions[$executionID]->end;
if(helper::isZeroDate($begin)) $begin = $executions[$executionID]->openedDate;
/* Unset burn information that is greater than the execution end date. */
foreach($executionBurns as $date => $burnInfo)
{
if($date > $end) unset($executionBurns[$date]);
}
$executionBurns = $this->processBurnData($executionBurns, $this->config->execution->defaultBurnPeriod, $begin, $end);
/* Shorter names. */