From 66f26a72e8345afa7548b2eed4a311f0d3619dad Mon Sep 17 00:00:00 2001 From: sunjun Date: Fri, 1 Jul 2022 01:32:11 +0000 Subject: [PATCH 01/40] fixbug_24248 --- module/execution/view/view.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php index 108e4a756b..719f49369c 100644 --- a/module/execution/view/view.html.php +++ b/module/execution/view/view.html.php @@ -121,11 +121,11 @@ $docLib):?> 8) break;?> -
+
createLink('doc', 'showFiles', "type=execution&objectID=$execution->id"), " " . $docLib->name);?> - createLink('doc', 'objectLibs', "type=execution&objectID={$execution->id}&libID=$libID"), " " . $docLib->name, '', "data-app='execution'");?> + createLink('doc', 'objectLibs', "type=execution&objectID={$execution->id}&libID=$libID"), " " . $docLib->name, '', "data-app='execution' title='$docLib->name'");?>
From 28c6608986690849d541c9e75edba7dbc17c9e25 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Thu, 7 Jul 2022 02:59:57 +0000 Subject: [PATCH 02/40] * Finish task #59681. --- module/kanban/control.php | 3 +- module/task/control.php | 218 ++++++++++++++++++++++++++------------ 2 files changed, 154 insertions(+), 67 deletions(-) diff --git a/module/kanban/control.php b/module/kanban/control.php index 751a76400b..6b2a0a43cd 100644 --- a/module/kanban/control.php +++ b/module/kanban/control.php @@ -1482,7 +1482,7 @@ class kanban extends control * @access public * @return void */ - public function deleteObjectCard($objectType, $objectID, $regionID) + public function deleteObjectCard($objectType, $objectID, $regionID, $from = '') { if(!($objectType == 'task' or $objectType == 'story' or $objectType == 'bug')) return false; $table = 'TABLE_' . strtoupper($objectType); @@ -1493,6 +1493,7 @@ class kanban extends control $browseType = $this->config->vision == 'lite' ? 'task' : $this->session->execLaneType; $groupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; $kanbanGroup = $this->kanban->getRDKanban($kanbanID, $browseType, 'id_desc', 0, $groupBy); + if($from == 'taskkanban') $kanbanGroup = $this->loadModel('kanban')->getExecutionKanban($kanbanID, $browseType, $groupBy); return print(json_encode($kanbanGroup)); } diff --git a/module/task/control.php b/module/task/control.php index 104163f453..1196b79a3e 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -180,16 +180,23 @@ class task extends control /* If link from no head then reload. */ if(isonlybody()) { - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($executionID, $execLaneType, 'id_desc', 0, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.updateKanban($kanbanData, 0)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->kanban->getExecutionKanban($executionID, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.updateKanban(\"task\", $kanbanData)")); + } else { return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent')); @@ -355,16 +362,23 @@ class task extends control /* If link from no head then reload. */ if(isonlybody()) { - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($executionID, $execLaneType, 'id_desc', 0, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, 0)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($executionID, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::reload('parent.parent')); @@ -515,15 +529,24 @@ class task extends control if(isonlybody()) { - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; - $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $this->session->execLaneType ? $this->session->execLaneType : 'all', 'id_desc', 0, $kanbanGroup, $rdSearchValue); - $kanbanData = json_encode($kanbanData); + $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', 0, $execGroup, $rdSearchValue); + $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::reload('parent.parent')); @@ -741,16 +764,23 @@ class task extends control if($this->viewType == 'json' or (defined('RUN_MODE') && RUN_MODE == 'api')) return $this->send(array('result' => 'success')); if(isonlybody()) { - $task = $this->task->getById($taskID); - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $task = $this->task->getById($taskID); + $execution = $this->execution->getByID($task->execution); + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; - $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $this->session->execLaneType ? $this->session->execLaneType : 'all', 'id_desc', 0, $kanbanGroup, $rdSearchValue); - $kanbanData = json_encode($kanbanData); + $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $this->session->execLaneType ? $this->session->execLaneType : 'all', 'id_desc', 0, $kanbanGroup, $rdSearchValue); + $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); @@ -991,18 +1021,25 @@ class task extends control if(isonlybody()) { - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; - $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); - $kanbanData = json_encode($kanbanData); + $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; + $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this', "function(){parent.parent.location.reload();}")); @@ -1056,17 +1093,24 @@ class task extends control if(isonlybody()) { - $execution = $this->execution->getByID($task->execution); + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; if($execution->type == 'kanban' and $this->app->tab == 'execution') { - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; - $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', 0, $execGroupBy, $rdSearchValue); - $kanbanData = json_encode($kanbanData); + $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', 0, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); @@ -1194,18 +1238,25 @@ class task extends control if(isonlybody()) { - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this', "function(){parent.parent.location.reload();}")); @@ -1284,19 +1335,26 @@ class task extends control if(isonlybody()) { - $task = $this->task->getById($taskID); - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $task = $this->task->getById($taskID); + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); @@ -1343,18 +1401,25 @@ class task extends control if(isonlybody()) { - $task = $this->task->getById($taskID); - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $task = $this->task->getById($taskID); + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', 0, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); @@ -1419,17 +1484,24 @@ class task extends control } } - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this', "function(){parent.parent.location.reload();}")); @@ -1583,19 +1655,26 @@ class task extends control if(isonlybody()) { - $task = $this->task->getById($taskID); - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $task = $this->task->getById($taskID); + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); @@ -1642,19 +1721,26 @@ class task extends control if(isonlybody()) { - $task = $this->task->getById($taskID); - $execution = $this->execution->getByID($task->execution); - if($execution->type == 'kanban' and $this->app->tab == 'execution') + $task = $this->task->getById($taskID); + $execution = $this->execution->getByID($task->execution); + $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; + $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; + $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; + if($execution->type == 'kanban' and ($this->app->tab == 'execution' or $this->config->vision == 'lite')) { $regionID = !empty($output['regionID']) ? $output['regionID'] : 0; - $execLaneType = $this->session->execLaneType ? $this->session->execLaneType : 'all'; - $execGroupBy = $this->session->execGroupBy ? $this->session->execGroupBy : 'default'; - $rdSearchValue = $this->session->rdSearchValue ? $this->session->rdSearchValue : ''; $kanbanData = $this->loadModel('kanban')->getRDKanban($task->execution, $execLaneType, 'id_desc', $regionID, $execGroupBy, $rdSearchValue); $kanbanData = json_encode($kanbanData); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban($kanbanData, $regionID)")); } + elseif($execution->type == 'sprint' and $this->app->tab == 'execution') + { + $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanData = json_encode($kanbanData['task']); + + return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); + } else { return print(js::closeModal('parent.parent', 'this')); From 63128f625868473bc6a3d67772316836acec1a34 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Thu, 7 Jul 2022 05:36:28 +0000 Subject: [PATCH 03/40] * Finish task #59681. --- module/task/control.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 1196b79a3e..0216a92236 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -193,7 +193,9 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->kanban->getExecutionKanban($executionID, $execLaneType, $execGroupBy, $rdSearchValue); - $kanbanData = json_encode($kanbanData['task']); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; + $kanbanData = json_encode($kanbanData); return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.updateKanban(\"task\", $kanbanData)")); } @@ -375,6 +377,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($executionID, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -543,6 +547,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -777,6 +783,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1036,6 +1044,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1107,6 +1117,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1253,6 +1265,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1351,6 +1365,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1416,6 +1432,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1498,6 +1516,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1671,6 +1691,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); @@ -1737,6 +1759,8 @@ class task extends control elseif($execution->type == 'sprint' and $this->app->tab == 'execution') { $kanbanData = $this->loadModel('kanban')->getExecutionKanban($task->execution, $execLaneType, $execGroupBy, $rdSearchValue); + $kanbanType = $execLaneType == 'all' ? 'task' : key($kanbanData); + $kanbanData = $kanbanData[$kanbanType]; $kanbanData = json_encode($kanbanData['task']); return print(js::closeModal('parent.parent', '', "parent.parent.updateKanban(\"task\", $kanbanData)")); From f1e7a1350d11d826b40a7cc5f636ecf1f7a345ed Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Thu, 7 Jul 2022 05:40:39 +0000 Subject: [PATCH 04/40] * Fix bug#24812. --- module/file/view/printfiles.html.php | 2 ++ module/file/view/viewfiles.html.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/module/file/view/printfiles.html.php b/module/file/view/printfiles.html.php index e66cbc43c8..b82e3022f7 100644 --- a/module/file/view/printfiles.html.php +++ b/module/file/view/printfiles.html.php @@ -7,6 +7,8 @@