From efedafce985c2a64f1b8a12b715a7d77450a48c9 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 13 May 2025 09:04:33 +0800 Subject: [PATCH] * [bug#62430,done,1h,0h] Fix project execution name col title error. --- module/project/config/dtable.php | 1 - module/project/js/execution.ui.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/module/project/config/dtable.php b/module/project/config/dtable.php index a50eff4b17..97aff15b75 100755 --- a/module/project/config/dtable.php +++ b/module/project/config/dtable.php @@ -163,7 +163,6 @@ $config->project->execution->dtable->fieldList['rawID']['show'] = true; $config->project->execution->dtable->fieldList['name']['title'] = $lang->nameAB; $config->project->execution->dtable->fieldList['name']['name'] = 'nameCol'; -$config->project->execution->dtable->fieldList['name']['type'] = 'title'; $config->project->execution->dtable->fieldList['name']['fixed'] = 'left'; $config->project->execution->dtable->fieldList['name']['flex'] = 1; $config->project->execution->dtable->fieldList['name']['type'] = 'nestedTitle'; diff --git a/module/project/js/execution.ui.js b/module/project/js/execution.ui.js index 768d160499..34c170f9c4 100644 --- a/module/project/js/execution.ui.js +++ b/module/project/js/execution.ui.js @@ -56,7 +56,6 @@ window.onRenderCell = function(result, {col, row}) result[0].props.children = data.type == 'point' ? '' : data.name; if(data.id.indexOf('tid') > -1 && data.type != 'point') { - result[0].props.title = data.rawName; result[0].props.children = data.rawName; result[0].props.href = $.createLink('task', 'view', 'taskID=' + data.rawID); html += data.prefixLabel; @@ -84,6 +83,7 @@ window.onRenderCell = function(result, {col, row}) } } + result[1].attrs.title = typeof data.rawName != 'undefined' && data.rawName ? data.rawName : data.name; if(html) result.unshift({className: 'flex items-center', html: html}); if(typeof data.delay != 'undefined' && data.delay && !['done', 'cancel', 'close'].includes(data.status) && data.type != 'point' && data.end != '' && data.end != '0000-00-00' && today > data.end)