diff --git a/module/execution/control.php b/module/execution/control.php index 63bda66be4..cf6b9eea59 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -4168,4 +4168,23 @@ class execution extends control echo json_encode($executions); } + /** + * AJAX: Get execution kanban data. + * + * @param int $executionID + * @access public + * @return void + */ + public function ajaxGetExecutionKanban($executionID) + { + $execution = $this->execution->getByID($executionID); + if($this->app->tab == 'execution' and $execution->type == 'kanban') + { + $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); + echo json_encode($kanbanData); + } + } } diff --git a/module/execution/js/importbug.js b/module/execution/js/importbug.js index 3eb40fb373..5751f1d62c 100644 --- a/module/execution/js/importbug.js +++ b/module/execution/js/importbug.js @@ -7,12 +7,21 @@ $(function() }); /** - * Go back. + * goback * + * @param int $executionID * @access public * @return void */ -function goback() +function goback(executionID) { - parent.location.reload(); + var link = createLink('execution', 'ajaxGetExecutionKanban', "executionID=" + executionID); + $.get(link, function(data) + { + if(data) + { + kanbanData = $.parseJSON(data); + parent.updateKanban(kanbanData); + } + }); } diff --git a/module/execution/view/importbug.html.php b/module/execution/view/importbug.html.php index 698f9985ff..2fb43928f3 100755 --- a/module/execution/view/importbug.html.php +++ b/module/execution/view/importbug.html.php @@ -77,7 +77,7 @@
- ' . $lang->goback, 'onclick="goback()"', 'btn');?> + ' . $lang->goback, "onclick='goback($executionID)'", 'btn');?>