From 007aec70c8f6eeed1ca331a7b3f3011c59cc6ede Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Mon, 29 Aug 2022 16:43:17 +0800 Subject: [PATCH] * Fix error when update commit. --- module/action/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/action/model.php b/module/action/model.php index 5e8477f90a..9affc3fda6 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -253,6 +253,8 @@ class actionModel extends model case 'task': $fields = 'project, execution, story'; $result = $this->dao->select($fields)->from($this->config->objectTables[$objectType])->where('id')->eq($objectID)->fetch(); + if(empty($result)) break; + if($result->story != 0) { $product = $this->dao->select('product')->from(TABLE_STORY)->where('id')->eq($result->story)->fetchPairs('product');