+ [task#144535] add ajax link mr objects method.

This commit is contained in:
liyang
2025-06-17 15:42:13 +08:00
parent ae54abf5ed
commit c92f641c80
+16
View File
@@ -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.