From b8841cd34ddb5165ddd3611a24037c78469311c3 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 16 May 2023 13:31:16 +0800 Subject: [PATCH] * Fix bug #35137, unset burn info that is greater than execution end. --- module/execution/model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 145ae84e7e..09d4814b95 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -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. */