* [task#140263,done,0.1h] fix bug.

This commit is contained in:
sunguangming
2025-04-01 10:17:58 +08:00
committed by 刘刚
parent 813d2964ad
commit d64bd321f7
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -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>`};
}
}
+3
View File
@@ -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');