diff --git a/module/convert/lang/en.php b/module/convert/lang/en.php index 144565ea5b..c6df7c07da 100644 --- a/module/convert/lang/en.php +++ b/module/convert/lang/en.php @@ -152,6 +152,8 @@ $lang->convert->jira->passwordLess = 'Password must not be less than six c $lang->convert->jira->importSuccessfully = 'Done!'; $lang->convert->jira->importResult = "Import %s data, %s pieces of data processed;"; $lang->convert->jira->importing = 'Data is being imported, please do not switch to other pages.'; +$lang->convert->jira->importingAB = 'Data Import'; +$lang->convert->jira->imported = 'Data Import Complete'; $lang->convert->jira->zentaoObjectList[''] = ''; $lang->convert->jira->zentaoObjectList['task'] = 'Task'; diff --git a/module/convert/lang/zh-cn.php b/module/convert/lang/zh-cn.php index 563dd85b13..f9f12f8a9f 100644 --- a/module/convert/lang/zh-cn.php +++ b/module/convert/lang/zh-cn.php @@ -152,6 +152,8 @@ $lang->convert->jira->passwordLess = '密码不能少于六位!'; $lang->convert->jira->importSuccessfully = 'Jira导入完成!'; $lang->convert->jira->importResult = "导入 %s 数据, 已处理 %s 条记录;"; $lang->convert->jira->importing = '数据导入中,请不要切换其它页面'; +$lang->convert->jira->importingAB = '数据导入中'; +$lang->convert->jira->imported = '数据导入完成'; $lang->convert->jira->zentaoObjectList[''] = ''; $lang->convert->jira->zentaoObjectList['task'] = '任务'; diff --git a/module/convert/model.php b/module/convert/model.php index b88cc21eb2..288f33263f 100644 --- a/module/convert/model.php +++ b/module/convert/model.php @@ -1164,6 +1164,8 @@ class convertModel extends model $comment = $data->actionbody; if(empty($comment)) continue; + if(!isset($issueObjectType[$issueID])) continue; + $objectType = $issueObjectType[$issueID]; if($objectType == 'task') $objectID = $issueTasks[$issueID]; if($objectType == 'bug') $objectID = $issueBugs[$issueID]; @@ -1222,6 +1224,8 @@ class convertModel extends model foreach($dataList as $fileAttachment) { $issueID = $fileAttachment->issueid; + if(!isset($issueObjectType[$issueID])) continue; + $objectType = $issueObjectType[$issueID]; if($objectType != 'bug' and $objectType != 'task' and $objectType != 'story') continue; diff --git a/module/convert/view/importjira.html.php b/module/convert/view/importjira.html.php index a4b779376f..b6ffb8172d 100644 --- a/module/convert/view/importjira.html.php +++ b/module/convert/view/importjira.html.php @@ -13,7 +13,7 @@