Merge branch 'master_xieqiyu_23797' into 'master'

* Fix bug#23797.

See merge request easycorp/zentaopms!3981
This commit is contained in:
王怡栋
2022-06-16 09:02:23 +00:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -740,6 +740,7 @@ class execution extends control
else
{
$this->session->set('executionStoryBrowseType', $type);
$this->session->set('storyBrowseType', $type, 'execution');
}
/* Save session. */
+1 -1
View File
@@ -2902,7 +2902,7 @@ class storyModel extends model
$storyIdList = $this->dao->select('story')->from(TABLE_PROJECTSTORY)->where('project')->in(array_keys($executions))->fetchPairs();
}
$type = ($type == 'bymodule' and $this->session->storyBrowseType) ? $this->session->storyBrowseType : $type;
$type = (strpos('bymodule|byproduct', $type) !== false and $this->session->storyBrowseType) ? $this->session->storyBrowseType : $type;
$stories = $this->dao->select('distinct t1.*, t2.*,t3.type as productType,t2.version as version')->from(TABLE_PROJECTSTORY)->alias('t1')
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story = t2.id')