From b651b6db99c128cc40e705c1022947c6689f8fd4 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Mon, 29 Apr 2024 09:15:00 +0800 Subject: [PATCH] * Add data app to grouptask page. bug #48651. --- module/execution/ui/grouptask.html.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/execution/ui/grouptask.html.php b/module/execution/ui/grouptask.html.php index 31a213aa10..4fb0d1f939 100644 --- a/module/execution/ui/grouptask.html.php +++ b/module/execution/ui/grouptask.html.php @@ -279,7 +279,6 @@ $tbody = function() use($tasks, $lang, $groupBy, $users, $groupByList, $executio foreach($groupTasks as $task) { $assignedToStyle = $task->assignedTo == $app->user->account ? "style='color:red'" : ''; - $taskLink = $this->createLink('task','view',"taskID=$task->id"); $tbody[] = h::tr ( @@ -323,7 +322,7 @@ $tbody = function() use($tasks, $lang, $groupBy, $users, $groupByList, $executio !empty($task->mode) ? span(setClass('label gray-pale rounded-xl'), $lang->task->multipleAB) : null, $task->parent > 0 ? span(setClass('label gray-pale rounded-xl'), $lang->task->childrenAB) : null, (isset($task->children) && $task->children == true) ? span(setClass('label gray-pale rounded-xl'), $lang->task->parentAB) : null, - a(set::href(createLink('task', 'view', "task=$task->id")), $task->name) + a(set::href(createLink('task', 'view', "task=$task->id")), $task->name, set('data-app', $app->tab)) ), h::td ( @@ -402,9 +401,10 @@ $tbody = function() use($tasks, $lang, $groupBy, $users, $groupByList, $executio ( array ( - 'url' => createLink('task', 'edit', "taskID=$task->id"), - 'class' => 'btn ghost toolbar-item text-primary square size-sm', - 'icon' => 'edit' + 'url' => createLink('task', 'edit', "taskID=$task->id"), + 'class' => 'btn ghost toolbar-item text-primary square size-sm', + 'icon' => 'edit', + 'data-app' => $app->tab ) ) ) : null,