From 842f2209a02c7bf49893abc1d846f63291ddcd70 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Thu, 9 Sep 2021 09:44:04 +0800 Subject: [PATCH] - Remove reviewer from creating and updating MR. --- module/mr/model.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/mr/model.php b/module/mr/model.php index 65e6ec014c..c92fe6ae55 100644 --- a/module/mr/model.php +++ b/module/mr/model.php @@ -99,7 +99,6 @@ class mrModel extends model $MRObject->title = $MR->title; $MRObject->description = $MR->description; $MRObject->assignee_ids = $MR->assignee; - $MRObject->reviewer_ids = $MR->reviewer; $rawMR = $this->apiCreateMR($this->post->gitlabID, $this->post->sourceProject, $MRObject); @@ -131,7 +130,6 @@ class mrModel extends model /* Change gitlab user ID to zentao account. */ $gitlabUsers = $this->gitlab->getUserIdAccountPairs($MR->gitlabID); $newMR->assignee = zget($gitlabUsers, $MR->assignee, ''); - $newMR->reviewer = zget($gitlabUsers, $MR->reviewer, ''); /* Update MR in Zentao database. */ $this->dao->update(TABLE_MR)->data($newMR) @@ -160,7 +158,6 @@ class mrModel extends model $newMR->title = $MR->title; $newMR->description = $MR->description; $newMR->assignee_ids = $MR->assignee; - $newMR->reviewer_ids = $MR->reviewer; $newMR->target_branch = $MR->targetBranch; $oldMR = $this->getByID($MRID); @@ -171,7 +168,6 @@ class mrModel extends model /* Change gitlab user ID to zentao account. */ $gitlabUsers = $this->gitlab->getUserIdAccountPairs($oldMR->gitlabID); $MR->assignee = zget($gitlabUsers, $MR->assignee, ''); - $MR->reviewer = zget($gitlabUsers, $MR->reviewer, ''); /* Update MR in Zentao database. */ $this->dao->update(TABLE_MR)->data($MR)