From 9835f45987f96ca91e5a09b5c3403f2ffd8545d9 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 15 Nov 2022 13:09:44 +0800 Subject: [PATCH] * Fix bug #29749. --- module/project/view/execution.html.php | 2 ++ module/transfer/control.php | 4 ++-- module/transfer/model.php | 10 +++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/module/project/view/execution.html.php b/module/project/view/execution.html.php index 1f95f153f7..3cc1368a99 100644 --- a/module/project/view/execution.html.php +++ b/module/project/view/execution.html.php @@ -42,10 +42,12 @@ $lang->programplan->stageCustom->task), '', $this->cookie->showTask ? 'checked=checked' : '');?>
+ model == 'waterfall'):?>
 ", '', "class='btn btn-icon text-primary switchBtn' title='{$lang->project->bylist}'");?> createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=gantt"), "  ", '', "class='btn btn-icon switchBtn' title='{$lang->programplan->gantt}'");?>
+ " . $lang->export, '', "class='btn btn-link export'")?> createLink('programplan', 'create', "projectID=$projectID&productID=$productID"), " " . $lang->programplan->create, '', "class='btn btn-primary'");?> diff --git a/module/transfer/control.php b/module/transfer/control.php index 1f58dc5022..b9b7851107 100755 --- a/module/transfer/control.php +++ b/module/transfer/control.php @@ -159,14 +159,14 @@ class transfer extends control if($model == 'story') { - $product = $this->loadModel('product')->getByID($this->session->storyPortParams['productID']); + $product = $this->loadModel('product')->getByID($this->session->storyTransferParams['productID']); if($product->type == 'normal') unset($fields['branch']); if($this->session->storyType == 'requirement') unset($fields['plan']); } if($model == 'bug') { - $product = $this->loadModel('product')->getByID($this->session->bugPortParams['productID']); + $product = $this->loadModel('product')->getByID($this->session->bugTransferParams['productID']); if($product->type == 'normal') unset($fields['branch']); if($product->shadow and ($this->app->tab == 'execution' or $this->app->tab == 'project')) unset($fields['product']); } diff --git a/module/transfer/model.php b/module/transfer/model.php index 6ec348d984..0837f45652 100644 --- a/module/transfer/model.php +++ b/module/transfer/model.php @@ -56,16 +56,16 @@ class transferModel extends model } /** - * Check tmpFile. + * Check tmp file. * * @access public * @return void */ public function checkTmpFile() { - $file = $this->session->fileImportFileName; - $tmpPath = $this->loadModel('file')->getPathOfImportedFile(); - $tmpFile = $tmpPath . DS . md5(basename($file)); + $file = $this->session->fileImportFileName; + $tmpPath = $this->loadModel('file')->getPathOfImportedFile(); + $tmpFile = $tmpPath . DS . md5(basename($file)); if($this->maxImport and file_exists($tmpFile)) return $tmpFile; return false; @@ -196,7 +196,7 @@ class transferModel extends model $rows = $this->getRows($model, $fieldList); if($model == 'story') { - $product = $this->loadModel('product')->getByID((int)$this->session->storyPortParams['productID']); + $product = $this->loadModel('product')->getByID((int)$this->session->storyTransferParams['productID']); if($product and $product->shadow) { foreach($rows as $id => $row)