* Fix story list in execution-story.

This commit is contained in:
zhouxin
2023-10-25 10:47:06 +08:00
parent 394f63d493
commit 2d3fbba5a6
+4 -5
View File
@@ -347,12 +347,11 @@ $setting = $this->loadModel('datatable')->getSetting('execution');
$cols = array();
foreach($setting as $col)
{
if(!$execution->hasProduct and $col['id'] == 'branch') continue;
if(!$execution->hasProduct and !$execution->multiple and $value['id'] == 'plan') continue;
if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value['id'] == 'stage') continue;
if(!$execution->hasProduct and $col['name'] == 'branch') continue;
if(!$execution->hasProduct and !$execution->multiple and $value['name'] == 'plan') continue;
if(!$execution->hasProduct and !$execution->multiple and $storyType == 'requirement' and $value['name'] == 'stage') continue;
$col['name'] = $col['id'];
if($col['id'] == 'title') $col['link'] = sprintf($col['link'], createLink('execution', 'storyView', array('storyID' => '{id}', 'execution' => $execution->id)));
if($col['name'] == 'title') $col['link'] = sprintf($col['link'], createLink('execution', 'storyView', array('storyID' => '{id}', 'execution' => $execution->id)));
$cols[] = $col;
}