* Fix bug #20112.
This commit is contained in:
@@ -263,6 +263,7 @@ class testcase extends control
|
||||
{
|
||||
if($groupBy == 'story')
|
||||
{
|
||||
if($case->storyDeleted) continue;
|
||||
$groupCases[$case->story][] = $case;
|
||||
$groupByList[$case->story] = $case->storyTitle;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ class testcaseModel extends model
|
||||
*/
|
||||
public function getModuleCases($productID, $branch = 0, $moduleIdList = 0, $orderBy = 'id_desc', $pager = null, $browseType = '', $auto = 'no')
|
||||
{
|
||||
$stmt = $this->dao->select('t1.*, t2.title as storyTitle')->from(TABLE_CASE)->alias('t1')
|
||||
$stmt = $this->dao->select('t1.*, t2.title as storyTitle, t2.deleted as storyDeleted')->from(TABLE_CASE)->alias('t1')
|
||||
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story=t2.id');
|
||||
|
||||
if($this->app->tab == 'project') $stmt = $stmt->leftJoin(TABLE_PROJECTCASE)->alias('t3')->on('t1.id=t3.case');
|
||||
|
||||
@@ -678,7 +678,7 @@ class testtask extends control
|
||||
if($groupBy == 'story' && $task->build)
|
||||
{
|
||||
$buildStoryIdList = $this->dao->select('stories')->from(TABLE_BUILD)->where('id')->eq($task->build)->fetch('stories');
|
||||
$buildStories = $this->dao->select('id,title')->from(TABLE_STORY)->where('id')->in($buildStoryIdList)->andWhere('id')->notin(array_keys($groupCases))->fetchAll('id');
|
||||
$buildStories = $this->dao->select('id,title')->from(TABLE_STORY)->where('id')->in($buildStoryIdList)->andWhere('deleted')->eq(0)->andWhere('id')->notin(array_keys($groupCases))->fetchAll('id');
|
||||
foreach($buildStories as $buildStory)
|
||||
{
|
||||
$groupCases[$buildStory->id][] = $buildStory;
|
||||
|
||||
Reference in New Issue
Block a user