This commit is contained in:
tianshujie
2022-11-07 17:21:08 +08:00
parent c05b94e3b0
commit e1ca6e57aa
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class design extends control
$this->view->position[] = $this->lang->design->create;
$this->view->users = $this->loadModel('user')->getPairs('noclosed');
$this->view->stories = $this->loadModel('story')->getProductStoryPairs($productID);
$this->view->stories = $this->loadModel('story')->getProductStoryPairs($productID, 'all', 0, 'active');
$this->view->productID = $productID;
$this->view->type = $type;
$this->view->project = $this->loadModel('project')->getByID($projectID);
+2 -1
View File
@@ -6,11 +6,12 @@ $(document).on('click', '.ajaxPager', function()
$('#product').change(function()
{
productID = $(this).val();
var link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID);
var link = createLink('story', 'ajaxGetProductStories', 'productID=' + productID + '&branch=all&moduleID=0&storyID=0&onlyOption=false&status=active');
$.post(link, function(data)
{
$('#story').replaceWith(data);
$('#story_chosen').remove();
$('#story').next('.picker').remove();
$('#story').chosen();
})
})
+2
View File
@@ -2372,6 +2372,8 @@ class story extends control
$storyStatus = array_keys($storyStatus);
}
if($status == 'active') $storyStatus = $status;
if($executionID)
{
$stories = $this->story->getExecutionStoryPairs($executionID, $productID, $branch, $moduleID, $type);