* Fix bug #27615 and adjust code.
This commit is contained in:
@@ -147,10 +147,7 @@ class port extends control
|
||||
{
|
||||
$filter = '';
|
||||
if($model == 'task') $filter = 'estimate';
|
||||
if($model == 'story')
|
||||
{
|
||||
if($this->session->storyType) $this->loadModel('story')->replaceUserRequirementLang();
|
||||
}
|
||||
if($model == 'story' and $this->session->storyType) $this->loadModel('story')->replaceUserRequirementLang();
|
||||
|
||||
$this->loadModel($model);
|
||||
$importFields = !empty($_SESSION[$model . 'TemplateFields']) ? $_SESSION[$model . 'TemplateFields'] : $this->config->$model->templateFields;
|
||||
|
||||
@@ -259,6 +259,8 @@ class portModel extends model
|
||||
foreach($fields as $key => $field)
|
||||
{
|
||||
$field = trim($field);
|
||||
if($model == 'bug' and $this->session->currentProductType == 'normal' and $field == 'branch') continue;
|
||||
|
||||
$modelFieldList = isset($this->modelFieldList[$field]) ? $this->modelFieldList[$field] : array();
|
||||
|
||||
foreach($portFieldList as $portField => $value)
|
||||
@@ -472,9 +474,7 @@ class portModel extends model
|
||||
if(!$tmpFile)
|
||||
{
|
||||
$rows = $this->getRowsFromExcel();
|
||||
|
||||
$modelData = $this->processRows4Fields($rows, $fields);
|
||||
|
||||
$modelData = $this->getNatureDatas($model, $modelData, $filter, $fields);
|
||||
|
||||
$this->createTmpFile($modelData);
|
||||
|
||||
Reference in New Issue
Block a user