From ad0175744bdf78398e68c11e5b8efbcfb9b2fb4d Mon Sep 17 00:00:00 2001 From: dingguodong Date: Fri, 25 Jun 2021 15:53:07 +0800 Subject: [PATCH] + Put root URL to created link. --- module/gitlab/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index 9269fa382f..cb1f05b8c9 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -369,19 +369,19 @@ class gitlabModel extends model { $label->name = sprintf($this->config->gitlab->zentaoObjectLabel->name, $objectType, $objectID); $label->color = $this->config->gitlab->zentaoObjectLabel->taskColor; - $label->description = helper::createLink('task', 'view', "taskID={$objectID}"); + $label->description = common::getSysURL() . helper::createLink('task', 'view', "taskID={$objectID}"); } elseif($objectType == 'bug') { $label->name = sprintf($this->config->gitlab->zentaoObjectLabel->name, $objectType, $objectID); $label->color = $this->config->gitlab->zentaoObjectLabel->taskColor; - $label->description = helper::createLink('bug', 'view', "bugID={$objectID}"); + $label->description = common::getSysURL() . helper::createLink('bug', 'view', "bugID={$objectID}"); } elseif($objectType == 'story') { $label->name = sprintf($this->config->gitlab->zentaoObjectLabel->name, $objectType, $objectID); $label->color = $this->config->gitlab->zentaoObjectLabel->taskColor; - $label->description = helper::createLink('story', 'view', "storyID={$objectID}"); + $label->description = common::getSysURL() . helper::createLink('story', 'view', "storyID={$objectID}"); } return $this->apiCreateLabel($gitlabID, $projectID, $label);