+ [task#144535] add ajax link mr objects method.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user