From 13614b07729ab78826d90152b9058a5b7b7113b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Tue, 15 Feb 2022 17:06:11 +0800 Subject: [PATCH] * Fix var name. --- module/convert/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/convert/model.php b/module/convert/model.php index 288f33263f..ecaef68c3f 100644 --- a/module/convert/model.php +++ b/module/convert/model.php @@ -195,8 +195,8 @@ class convertModel extends model public function getJiraDataFromFile($module, $lastID = 0, $limit = 0) { $fileName = $module; - if($module == 'build') $filename = 'version'; - if($module == 'file') $filename = 'fileattachment'; + if($module == 'build') $fileName = 'version'; + if($module == 'file') $fileName = 'fileattachment'; $filePath = $this->app->getTmpRoot() . 'jirafile/' . $fileName . '.xml'; if(!file_exists($filePath)) return array(); @@ -259,7 +259,7 @@ class convertModel extends model $project->pname = $data['name']; $project->pkey = $data['key']; $project->ORIGINALKEY = $data['originalkey']; - $project->DESCRIPTION = $data['description']; + $project->DESCRIPTION = isset($data['description']) ? $data['description'] : ''; $project->LEAD = $data['lead']; $dataList[$key] = $project;