Merge pull request #2446 from justin-lau/fix-import-file-path-order

Fixing default import template doesn't extract columns from the latest uploaded file.
This commit is contained in:
Samuel Georges 2016-11-03 07:10:16 +11:00 committed by GitHub
commit 348dd85338
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ abstract class ImportModel extends Model
$file = $this
->import_file()
->withDeferred($sessionKey)
->orderBy('id', 'desc')
->first()
;