Skip to content

Commit

Permalink
Merge pull request #686 from coral-erm/sirsidynix
Browse files Browse the repository at this point in the history
ERM-93 Fix to view archive for file import
  • Loading branch information
jpeeblesSD authored Jul 15, 2021
2 parents 7d5a118 + a856bf8 commit c388297
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usage/uploadComplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -888,16 +888,16 @@ function sumCounts($counts, $year) {
include 'templates/header.php';

//Log import in database
if ($importLogID != ""){
if ($fromSushi){
$importLog = new ImportLog(new NamedArguments(array('primaryKey' => $importLogID)));
$importLog->fileName = $importLog->fileName;
$importLog->archiveFileURL = $importLog->fileName;
$importLog->details = $importLog->details . "\n" . $rownumber . _(" rows processed.") . $logSummary;
$archvieFileName = $importLog->fileName;
}else{
// copy the uploaded file to the archive
$archvieFileName = 'archive/' . $fileInfo['filename'] . '_' .strtotime('now') . '.' . $fileInfo['extension'];
copy($file, BASE_DIR . $archvieFileName);
$archvieFileName = 'archive/' . $fileInfo['filename'] . '_' .strtotime('now') . '.txt';
copy(BASE_DIR . 'counterstore/' . $fileInfo['filename'], BASE_DIR . $archvieFileName);
$importLog = new ImportLog();
$importLog->importLogID = '';
$importLog->fileName = $fileInfo['basename'];
Expand Down

0 comments on commit c388297

Please sign in to comment.