From c4a0252f8e2aef7b8925914fefb1e166792da3a3 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Thu, 11 Jan 2024 14:35:49 +0800 Subject: [PATCH] * Fix bug#43644. --- module/execution/ui/ajaxgetdropmenu.html.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/execution/ui/ajaxgetdropmenu.html.php b/module/execution/ui/ajaxgetdropmenu.html.php index 07da06d3b9..0a2a3b26e5 100644 --- a/module/execution/ui/ajaxgetdropmenu.html.php +++ b/module/execution/ui/ajaxgetdropmenu.html.php @@ -46,10 +46,13 @@ foreach($projectExecutions as $projectID => $executions) $group = $getExecutionGroup($execution); $item = array(); - $item['id'] = $execution->id; - $item['text'] = $execution->name; - $item['keys'] = zget(common::convert2Pinyin(array($execution->name)), $execution->name, ''); + $item['id'] = $execution->id; + $item['text'] = $execution->name; + $item['keys'] = zget(common::convert2Pinyin(array($execution->name)), $execution->name, ''); $item['data-app'] = $app->tab; + $item['url'] = sprintf($link, $execution->id); + + if($execution->type == 'kanban') $item['url'] = helper::createLink('execution', 'kanban', "execution={$execution->id}"); if(!isset($data[$group][$projectID])) $data[$group][$projectID] = $projectItem; $data[$group][$projectID]['items'][] = $item; @@ -76,7 +79,6 @@ $json = array(); $json['data'] = $data; $json['tabs'] = $tabs; $json['searchHint'] = $lang->searchAB; -$json['link'] = array('execution' => sprintf($link, '{id}')); $json['labelMap'] = array('project' => $lang->project->common); $json['expandName'] = 'closed'; $json['itemType'] = 'execution';