@@ -19,8 +20,8 @@
- - + + diff --git a/module/pipeline/model.php b/module/pipeline/model.php index c740085398..3d858314f2 100644 --- a/module/pipeline/model.php +++ b/module/pipeline/model.php @@ -42,7 +42,7 @@ class pipelineModel extends model { return $this->dao->select('*')->from(TABLE_PIPELINE) ->where('deleted')->eq('0') - ->AndWhere('type')->eq($type) + ->AndWhere('type')->in($type) ->orderBy($orderBy) ->page($pager) ->fetchAll('id'); diff --git a/module/repo/model.php b/module/repo/model.php index 824d833ea2..3ccca373f5 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -2052,10 +2052,9 @@ class repoModel extends model * @param int $projectID * @return array */ - public function getGitLabRepoList($gitlabID, $projectID = 0) + public function getRepoListByClient($gitlabID, $projectID = 0) { return $this->dao->select('*')->from(TABLE_REPO)->where('deleted')->eq('0') - ->andWhere('SCM')->eq('Gitlab') ->andWhere('synced')->eq(1) ->andWhere('client')->eq($gitlabID) ->beginIF($projectID)->andWhere('path')->eq($projectID)->fi()
gitlab->common;?>mr->server;?>
mr->sourceProject;?>