* Add fix update story.
This commit is contained in:
@@ -77,21 +77,6 @@ class gitlabModel extends model
|
||||
->fetchPairs();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gitlab gitlabID and gitlabProjectID.
|
||||
*
|
||||
* @param int $gitlab
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getGitlabToGitlabProject($storyID)
|
||||
{
|
||||
return $this->dao->select('BID,BVersion')->from(TABLE_RELATION)
|
||||
->where('relation')->eq('gitlab')
|
||||
->andWhere('AID')->eq($storyID)
|
||||
->fetchAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get zentao account gitlab user id pairs of one gitlab.
|
||||
*
|
||||
|
||||
@@ -830,7 +830,7 @@ class storyModel extends model
|
||||
$this->dao->insert(TABLE_STORYREVIEW)->data($reviewData)->exec();
|
||||
}
|
||||
/* update story to gitlab issue. */
|
||||
$objectID = $this->loadModel('gitlab')->getGitlabToGitlabProject($storyID);
|
||||
$objectID = $this->loadModel('gitlab')->getGitlabIDprojectID('story',$storyID);
|
||||
if($objectID) $this->loadModel('gitlab')->pushToissue('story', $storyID, $this->post->gitlab, $this->post->gitlabProject);
|
||||
|
||||
unset($oldStory->parent);
|
||||
@@ -1770,7 +1770,7 @@ class storyModel extends model
|
||||
if(!dao::isError())
|
||||
{
|
||||
/* Update this story to gitlab issue. */
|
||||
$objectID = $this->loadModel('gitlab')->getGitlabToGitlabProject($storyID);
|
||||
$objectID = $this->loadModel('gitlab')->getGitlabIDprojectID('story',$storyID);
|
||||
if($objectID) $this->loadModel('gitlab')->pushToissue('story', $storyID, $this->post->gitlab, $this->post->gitlabProject);
|
||||
|
||||
return common::createChanges($oldStory, $story);
|
||||
|
||||
Reference in New Issue
Block a user