From 0d5ecea9ab401716c5a75d0131c00c19b3546a26 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 25 Dec 2023 10:31:58 +0800 Subject: [PATCH] * Fix bug #42210. --- module/task/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 226df84184..c4765b80f0 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -1261,7 +1261,7 @@ class task extends control $changes = $this->task->updateEstimate($estimateID); if(dao::isError()) return print(js::error(dao::getError())); - $actionID = $this->loadModel('action')->create('task', $estimate->task, 'EditEstimate', $this->post->work); + $actionID = $this->loadModel('action')->create('task', $estimate->objectID, 'EditEstimate', $this->post->work); $this->action->logHistory($actionID, $changes); $url = $this->session->estimateList ? $this->session->estimateList : inlink('recordEstimate', "taskID={$estimate->task}");