diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 4ef8d58d8a..213828f266 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -261,7 +261,7 @@ class gitlab extends control $productID = $this->get->product; $gitlabID = $this->get->gitlab; $projectID = $this->get->project; - $relations = $this->gitlab->getExecutionsByProduct($productID); + // todo next: get execution from product and execution module. $executions = array(); foreach($relations as $relation) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index f55fcb0c37..74c4bcb7a7 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -182,23 +182,6 @@ class gitlabModel extends model ->fetchGroup('AID'); } - /** - * Get gitlab projects of one Product. - * - * @param int $productID - * @access public - * @return array - */ - public function getProjectsByProduct($productID) - { - return $this->dao->select('AID, BID as gitlabProject')->from(TABLE_RELATION) - ->where('relation')->eq('interrated') - ->andWhere('AType')->eq('gitlab') - ->andWhere('BType')->eq('gitlabProject') - ->andWhere('product')->eq($productID) - ->fetchGroup('AID'); - } - /** * Get executions by one product for gitlab module. *