From de89dcdeea5f6c13347f650beba9e48651a07bdc Mon Sep 17 00:00:00 2001 From: dingguodong Date: Mon, 4 Sep 2023 14:58:59 +0800 Subject: [PATCH] * Load model before use it. --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index e1867e5ed1..4cff8d44ef 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1237,7 +1237,7 @@ class executionModel extends model $changes = common::createChanges($oldExecution, $execution); if(!empty($changes) || $this->post->comment != '') { - $actionID = $this->action->create($this->objectType, $executionID, 'Suspended', $this->post->comment); + $actionID = $this->loadModel('action')->create($this->objectType, $executionID, 'Suspended', $this->post->comment); $this->action->logHistory($actionID, $changes); } return $changes;