* [bug#52118,done,0.1h] optimize code.

This commit is contained in:
liumengyi
2024-07-05 10:31:55 +08:00
committed by 田淑杰
parent ca33b785ce
commit 45dcf6754d
+1 -1
View File
@@ -491,7 +491,7 @@ class releaseModel extends model
$this->dao->update(TABLE_STORY)->set('stagedBy')->eq('')->where('id')->eq($storyID)->exec();
if($product->type != 'normal') $this->dao->update(TABLE_STORYSTAGE)->set('stagedBy')->eq('')->where('story')->eq($storyID)->andWhere('branch')->eq($release->branch)->exec();
if($release->status != 'wait') $this->story->setStage($storyID);
if($release->status == 'normal') $this->story->setStage($storyID);
$this->action->create('story', $storyID, 'linked2release', '', $releaseID);
}