From 582768599385eda92e88356e471d8bae59331e79 Mon Sep 17 00:00:00 2001 From: liwenrui Date: Thu, 24 Aug 2023 15:37:56 +0800 Subject: [PATCH] * fix querying product in task table. --- module/ai/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ai/model.php b/module/ai/model.php index 7a476d9af9..207ec51f33 100644 --- a/module/ai/model.php +++ b/module/ai/model.php @@ -1381,7 +1381,7 @@ class aiModel extends model if($objectName == 'task') { $vars[] = $this->dao->select('max(id) as maxId')->from(TABLE_TASK)->alias('tt') - ->leftJoin(TABLE_DOC)->alias('td')->on('td.product = tt.product') + ->leftJoin(TABLE_DOC)->alias('td')->on('td.project = tt.project or td.execution = tt.execution') ->where('td.id')->eq($objectId) ->andWhere('tt.deleted')->eq(0) ->fetch('maxId');