From c4170254038c203f9aeb0fb16611eef662e5e13e Mon Sep 17 00:00:00 2001 From: liwenrui Date: Mon, 24 Jul 2023 16:40:55 +0800 Subject: [PATCH] * outdent. --- module/ai/model.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/module/ai/model.php b/module/ai/model.php index f35a2ae221..7a6378481c 100644 --- a/module/ai/model.php +++ b/module/ai/model.php @@ -854,9 +854,9 @@ class aiModel extends model if($module == 'release') { $releaseId = $this->dao->select('max(id) as maxId')->from(TABLE_RELEASE) - ->where('project')->in($this->app->user->view->projects) - ->orWhere('product')->in($this->app->user->view->products) - ->fetch('maxId'); + ->where('project')->in($this->app->user->view->projects) + ->orWhere('product')->in($this->app->user->view->products) + ->fetch('maxId'); if(!empty($releaseId)) return helper::createLink('release', 'view', "releaseID=$releaseId"); } if($module == 'project') @@ -882,32 +882,32 @@ class aiModel extends model if($module == 'task') { $taskId = $this->dao->select('max(id) as maxId')->from(TABLE_TASK) - ->where('project')->in($this->app->user->view->projects) - ->fetch('maxId'); + ->where('project')->in($this->app->user->view->projects) + ->fetch('maxId'); if(!empty($taskId)) return helper::createLink('task', 'view', "taskID=$taskId"); } if($module == 'case') { $caseId = $this->dao->select('max(id) as maxId')->from(TABLE_CASE) - ->where('project')->in($this->app->user->view->projects) - ->orWhere('product')->in($this->app->user->view->products) - ->fetch('maxId'); + ->where('project')->in($this->app->user->view->projects) + ->orWhere('product')->in($this->app->user->view->products) + ->fetch('maxId'); if(!empty($caseId)) return helper::createLink('testcase', 'view', "caseID=$caseId"); } if($module == 'bug') { $bugId = $this->dao->select('max(id) as maxId')->from(TABLE_BUG) - ->where('project')->in($this->app->user->view->projects) - ->orWhere('product')->in($this->app->user->view->products) - ->fetch('maxId'); + ->where('project')->in($this->app->user->view->projects) + ->orWhere('product')->in($this->app->user->view->products) + ->fetch('maxId'); if(!empty($bugId)) return helper::createLink('bug', 'view', "bugID=$bugId"); } if($module == 'doc') { $docId = $this->dao->select('max(id) as maxId')->from(TABLE_DOC) - ->where('project')->in($this->app->user->view->projects) - ->orWhere('product')->in($this->app->user->view->products) - ->fetch('maxId'); + ->where('project')->in($this->app->user->view->projects) + ->orWhere('product')->in($this->app->user->view->products) + ->fetch('maxId'); if(!empty($docId)) return helper::createLink('doc', 'view', "docID=$docId"); }