* Remove duplicated loadModel for gitlab related after CR.
This commit is contained in:
@@ -2514,8 +2514,9 @@ class execution extends control
|
||||
foreach($storyIdList as $storyID)
|
||||
{
|
||||
/* Delete related issue in gitlab. */
|
||||
$relation = $this->loadModel('gitlab')->getRelationByObject('story', $storyID);
|
||||
if(!empty($relation)) $this->loadModel('gitlab')->deleteIssue('story', $storyID, $relation->issueID);
|
||||
$this->loadModel('gitlab');
|
||||
$relation = $this->gitlab->getRelationByObject('story', $storyID);
|
||||
if(!empty($relation)) $this->gitlab->deleteIssue('story', $storyID, $relation->issueID);
|
||||
|
||||
$this->execution->unlinkStory($executionID, $storyID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user