From 01fa4d4f0a93e6d635512fafc30bf7e1b998803f Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 18 Dec 2023 16:39:33 +0800 Subject: [PATCH] * Adjust call function name for mr. --- module/mr/zen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mr/zen.php b/module/mr/zen.php index aa68423f20..20a7fdfda1 100644 --- a/module/mr/zen.php +++ b/module/mr/zen.php @@ -62,8 +62,8 @@ class mrZen extends mr } $targetBranchList = array(); - $branchList = $this->loadModel($scm)->getBranches($MR->hostID, $MR->targetProject); - foreach($branchList as $branch) $targetBranchList[$branch] = $branch; + $branchList = $this->loadModel($scm)->apiGetBranches($MR->hostID, $MR->targetProject); + foreach($branchList as $branch) $targetBranchList[$branch->name] = $branch->name; $jobList = array(); if($MR->repoID)