diff --git a/module/mr/model.php b/module/mr/model.php index a0edbaa0c6..6f90f790a3 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -192,7 +192,8 @@ class mrModel extends model { $rawMR = $this->apiGetSingleMR($MR->gitlabID, $MR->targetProject, $MR->mriid); - if(isset($rawMR->iid) and $rawMR->state != 'merged') + /* Sync MR in ZenTao database whatever status of MR in GitLab. */ + if(isset($rawMR->iid)) { $map = $this->config->MR->maps->sync; $gitlabUsers = $this->gitlab->getUserIdAccountPairs($MR->gitlabID); @@ -239,7 +240,7 @@ class mrModel extends model $rawMR = $this->apiGetSingleMR($MR->gitlabID, $MR->targetProject, $MR->mriid); - if(isset($rawMR->iid) and $rawMR->state != 'merged') + if(isset($rawMR->iid)) { /* create gitlab mr todo to zentao todo */ $this->batchSyncTodo($MR->gitlabID, $MR->targetProject);