* Fix bug #35137, unset burn info that is greater than execution end.
This commit is contained in:
@@ -4091,6 +4091,12 @@ class executionModel extends model
|
|||||||
$begin = $executions[$executionID]->begin;
|
$begin = $executions[$executionID]->begin;
|
||||||
$end = $executions[$executionID]->end;
|
$end = $executions[$executionID]->end;
|
||||||
if(helper::isZeroDate($begin)) $begin = $executions[$executionID]->openedDate;
|
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);
|
$executionBurns = $this->processBurnData($executionBurns, $this->config->execution->defaultBurnPeriod, $begin, $end);
|
||||||
|
|
||||||
/* Shorter names. */
|
/* Shorter names. */
|
||||||
|
|||||||
Reference in New Issue
Block a user