From c92f641c802f5bd65c1b7cf8b2dd1f2bb44cebc8 Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 17 Jun 2025 15:42:13 +0800 Subject: [PATCH] + [task#144535] add ajax link mr objects method. --- module/mr/control.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/module/mr/control.php b/module/mr/control.php index 181ca8688a..ed10fc18cf 100644 --- a/module/mr/control.php +++ b/module/mr/control.php @@ -967,6 +967,22 @@ class mr extends control return $this->sendSuccess(array('load' => true)); } + /** + * 获取合并请求关联的对象。 + * AJAX get MR linked objects. + * + * @param int $MRID + * @access public + * @return void + */ + public function ajaxLinkObjects(int $MRID) + { + $mr = $this->mr->fetchByID($MRID); + if(!$mr) return false; + + return $this->mr->linkObjects($mr); + } + /** * 同步流水线的构建状态。 * AJAX sync compile status.