* Preparing for merge them to pushObject.
This commit is contained in:
@@ -561,6 +561,14 @@ class gitlabModel extends model
|
||||
public function pushTask($taskID, $gitlab, $gitlabProject)
|
||||
{
|
||||
$task = $this->loadModel('task')->getByID($taskID);
|
||||
|
||||
if(!$gitlabID or !$projectID)
|
||||
{
|
||||
$result = $this->getGitlabIDprojectID('task', $taskID);
|
||||
$gitlabID = $result->gitlabID;
|
||||
$projectID = $result->projectID;
|
||||
}
|
||||
|
||||
$syncedIssue = $this->getSyncedIssue($objectType = 'task', $objectID = $taskID, $gitlab);
|
||||
|
||||
$issue = $this->taskToIssue($gitlab, $gitlabProject, $task);
|
||||
@@ -628,6 +636,13 @@ class gitlabModel extends model
|
||||
{
|
||||
$bug = $this->loadModel('bug')->getByID($bugID);
|
||||
|
||||
if(!$gitlabID or !$projectID)
|
||||
{
|
||||
$result = $this->getGitlabIDprojectID('bug', $bugID);
|
||||
$gitlabID = $result->gitlabID;
|
||||
$projectID = $result->projectID;
|
||||
}
|
||||
|
||||
$syncedIssue = $this->getSyncedIssue($objectType = 'bug', $objectID = $bugID, $gitlab);
|
||||
$issue = $this->bugToIssue($gitlab, $gitlabProject, $bug);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user