* [task#140263,done,0.1h] fix bug.
This commit is contained in:
@@ -183,9 +183,9 @@ window.onRenderCell = function(result, {row, col})
|
||||
{
|
||||
result[0] = {html: '<span style="color:#ff6f42">' + caseChanged + '</span>'};
|
||||
}
|
||||
if(col.name == 'story')
|
||||
if(col.name == 'story' && row.data.story > 0)
|
||||
{
|
||||
if(row.data.story > 0) result[0] = {html: `<a href="${$.createLink('story', 'view', `storyID=${row.data.story}`)}">${row.data.storyTitle}</a>`};
|
||||
result[0] = {html: `<a href="${$.createLink('story', 'view', `storyID=${row.data.story}`)}">${row.data.storyTitle}</a>`};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -354,6 +354,9 @@ class testcaseModel extends model
|
||||
|
||||
$caseQuery .= ')';
|
||||
|
||||
// 将caseQuery中的字段替换成t1.字段
|
||||
$caseQuery = preg_replace('/`(.*?)`/', 't1.`$1`', $caseQuery);
|
||||
|
||||
/* Search criteria under compatible project. */
|
||||
$sql = $this->dao->select('t1.*,t3.title as storyTitle')->from(TABLE_CASE)->alias('t1');
|
||||
if($this->app->tab == 'project') $sql->leftJoin(TABLE_PROJECTCASE)->alias('t2')->on('t1.id = t2.case');
|
||||
|
||||
Reference in New Issue
Block a user