*Add batch update, assign, function in the story model.
This commit is contained in:
@@ -275,25 +275,6 @@ class gitlabModel extends model
|
||||
return json_decode(commonModel::http($url, $data, $options));
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an api post request.
|
||||
*
|
||||
* @param int|string $host gitlab server ID | gitlab host url.
|
||||
* @param int $api
|
||||
* @param int $data
|
||||
* @param int $options
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function apiGet($host, $api, $data = array(), $options = array())
|
||||
{
|
||||
if(is_numeric($host)) $host = $this->getApiRoot($host);
|
||||
if(strpos($host, 'http://') !== 0 and strpos($host, 'https://') !== 0) return false;
|
||||
|
||||
$url = sprintf($apiRoot, $api);
|
||||
return json_decode(commonModel::http($url, $data, $options));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current user.
|
||||
*
|
||||
@@ -570,7 +551,6 @@ class gitlabModel extends model
|
||||
|
||||
$issue = $this->loadModel('gitlab')->parseObjectToIssue($gitlabID, $projectID, $objectType, $object);
|
||||
if(isset($label->name)) $issue->labels = $label->name;
|
||||
|
||||
foreach($this->config->gitlab->skippedFields->issueCreate[$objectType] as $field)
|
||||
{
|
||||
if(isset($issue->$field)) unset($issue->$field);
|
||||
|
||||
Reference in New Issue
Block a user