From 02c5ad77e55166a63debc4f89b8964db93651acf Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 14 Feb 2025 09:33:24 +0800 Subject: [PATCH] * [bug#59699,done,0.5h] fix change first hours error. --- module/execution/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index ab732d6da3..f0b9655900 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -970,9 +970,10 @@ class execution extends control $burn = $this->execution->getBurnByExecution($executionID, $execution->begin, 0); $withLeft = $this->post->withLeft ? $this->post->withLeft : 0; $burnData = form::data($this->config->execution->form->fixfirst) + ->add('task', 0) ->add('execution', $executionID) ->add('date', $execution->begin) - ->add('left', $withLeft ? $this->post->estimate : $burn->left) + ->add('left', $withLeft ? $this->post->estimate : (empty($burn) ? 0 : $burn->left)) ->add('consumed', empty($burn) ? 0 : $burn->consumed) ->get();