* change importFile to fileImport.

This commit is contained in:
wangyidong
2020-05-13 17:39:17 +08:00
parent be2033a859
commit e1dd1b8d1f
14 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -1419,7 +1419,7 @@ class testcase extends control
if(count($columnKey) == 0) die(js::alert($this->lang->testcase->errorEncode));
}
$this->session->set('importFile', $fileName);
$this->session->set('fileImport', $fileName);
die(js::locate(inlink('showImport', "productID=$productID&branch=$branch"), 'parent.parent'));
}
@@ -1509,7 +1509,7 @@ class testcase extends control
*/
public function showImport($productID, $branch = 0, $pagerID = 1, $maxImport = 0)
{
$file = $this->session->importFile;
$file = $this->session->fileImport;
$tmpPath = $this->loadModel('file')->getImportTmp();
$tmpFile = $tmpPath . DS . md5(basename($file));