From 7d3577080b5867efd97c47e41e5267deef26caf1 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 23 Sep 2025 11:41:20 +0800 Subject: [PATCH] * [refac bug #65636] htmlspecialchars_decode task name. --- module/execution/control.php | 1 + module/execution/js/taskkanban.ui.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 394b885125..bba635d556 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -172,6 +172,7 @@ class execution extends control $branchGroups = $this->loadModel('branch')->getByProducts(array_keys($this->view->products)); foreach($tasks as $task) { + $task->name = htmlspecialchars_decode($task->name); if($task->mode == 'multi' && strpos('done,closed', $task->status) === false) { $task->assignedTo = ''; diff --git a/module/execution/js/taskkanban.ui.js b/module/execution/js/taskkanban.ui.js index bf3989bb75..dbd29b5e20 100644 --- a/module/execution/js/taskkanban.ui.js +++ b/module/execution/js/taskkanban.ui.js @@ -300,8 +300,8 @@ window.getItem = function(info) label = "" + childrenAB + " "; } - if(label && typeof info.item.title == 'string') info.item.title = {html: label + info.item.title}; - else if(label && typeof info.item.title == 'object') info.item.title.html = label + info.item.title.html; + if(typeof info.item.title == 'string') info.item.title = {html: info.item.title}; + if(label && typeof info.item.title == 'object') info.item.title.html = label + info.item.title.html; } if(['story', 'epic', 'requirement', 'parentStory'].includes(info.laneInfo.type))