diff --git a/module/metric/dataset.php b/module/metric/dataset.php index e30abb56e8..62e9e368bd 100644 --- a/module/metric/dataset.php +++ b/module/metric/dataset.php @@ -1057,9 +1057,10 @@ class dataset public function getMRs($fieldList) { return $this->dao->select($fieldList)->from(TABLE_MR)->alias('t1') - ->leftJoin(TABLE_REPO)->alias('t2')->on('t1.hostID = t2.id') + ->leftJoin(TABLE_REPO)->alias('t2')->on('t1.repoID = t2.id') ->where('t1.deleted')->eq('0') - ->andWhere('t2.deleted')->eq('0'); + ->andWhere('t2.deleted')->eq('0') + ->andWhere('t1.isFlow')->eq('0'); } /**