From 84674f2d5c6d11b453aca03e2fd9450463ab082b Mon Sep 17 00:00:00 2001 From: dingguodong Date: Thu, 1 Jul 2021 16:18:57 +0800 Subject: [PATCH] + Add unfinished transferIssue function for optimizing after code review. --- module/gitlab/control.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 1283e08487..6b35a6cf3b 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -246,4 +246,29 @@ class gitlab extends control $this->gitlab->saveSyncedIssue('task', $task, $gitlabID, $issue); exit; } + + public function transferIssue() + { + //TODO(dingguodong) todo next. + if(!empty($this->post)) + { + $project; + $product; + $execution; + $objetcType; + $gitlab; + $gitlabProject; + $gitlabIssue; + } + + $this->view->programs = array('') + $this->loadModel('program')->getTopPairs('', 'noclosed'); + + $this->view->products = '$projects'; + $this->view->execution = '$projects'; + $this->view->objectTypes = '$projects'; + $this->view->gitlabs = '$projects'; + $this->view->gitlabProjects = '$projects'; + $this->view->gitlabIssues = '$projects'; + $this->display(); + } }