* Fix error when update commit.

This commit is contained in:
liyuchun
2022-08-29 16:43:17 +08:00
parent 82996a13de
commit 007aec70c8
+2
View File
@@ -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');