* Add story type to link story.

This commit is contained in:
sunguangming
2024-05-29 10:42:54 +08:00
parent a9ecbd16ac
commit c0b1832061
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2870,7 +2870,7 @@ class executionModel extends model
$columnID = $this->kanban->getColumnIDByLaneID((int)$laneID, 'backlog');
if(empty($columnID)) $columnID = isset($output['columnID']) ? $output['columnID'] : 0;
if(!empty($laneID) and !empty($columnID)) $this->kanban->addKanbanCell($executionID, $laneID, $columnID, 'story', $storyID);
if(!empty($laneID) and !empty($columnID)) $this->kanban->addKanbanCell($executionID, $laneID, $columnID, $storyType, $storyID);
$data = new stdclass();
$data->project = $executionID;
@@ -2890,7 +2890,7 @@ class executionModel extends model
if($storyType == 'requirement' and $execution->model == 'ipd') $this->dao->update(TABLE_STORY)->set('status')->eq('developing')->where('id')->eq($storyID)->exec();
}
if(!isset($output['laneID']) or !isset($output['columnID'])) $this->kanban->updateLane($executionID, 'story');
if(!isset($output['laneID']) or !isset($output['columnID'])) $this->kanban->updateLane($executionID, $storyType);
return true;
}
+1 -1
View File
@@ -158,7 +158,7 @@ class story extends control
}
if($this->session->project && $executionID != $this->session->project) $this->execution->linkStory($this->session->project, $storyIdList);
$this->execution->linkStory($executionID, $storyIdList, $extra, $lanes);
$this->execution->linkStory($executionID, $storyIdList, $extra, $lanes, $storyType);
}
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $stories));