* Code for jira.

This commit is contained in:
孙广明
2022-02-10 17:30:47 +08:00
parent 63bd6e0c46
commit dc7ced4c87
4 changed files with 417 additions and 12 deletions
+6 -5
View File
@@ -314,7 +314,7 @@ class convert extends control
if($_POST)
{
$this->session->set('linkType', $_POST);
$this->session->set('jiraRelation', $_POST);
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;
@@ -391,7 +391,7 @@ class convert extends control
* @access public
* @return void
*/
public function importJira($method = 'db', $type = 'user', $lastID = 0)
public function importJira($method = 'db', $type = 'user', $lastID = 0, $createTable = false)
{
set_time_limit(0);
@@ -399,7 +399,7 @@ class convert extends control
{
if(helper::isAjaxRequest())
{
$result = $this->convert->importJiraFromDB($type, $lastID);
$result = $this->convert->importJiraFromDB($type, $lastID, $createTable);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if(isset($result['finished']) and $result['finished'])
{
@@ -423,8 +423,9 @@ class convert extends control
//$this->convert->importJiraFromFile();
}
$this->view->type = $type;
$this->view->title = $this->lang->convert->jira->importJira;
$this->view->type = $type;
$this->view->method = $method;
$this->view->title = $this->lang->convert->jira->importJira;
$this->display();
}
}