mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Move comment up
This commit is contained in:
parent
04b6cb763f
commit
3772a21a51
|
@ -528,6 +528,7 @@ class Importer extends Component
|
|||
$import = Import::find($id);
|
||||
|
||||
// Check that the import wasn't deleted after while page was already loaded...
|
||||
// @todo: next up...handle the file being missing for other interactions...for example switching the import type
|
||||
if (!$import) {
|
||||
// @todo: improve error message
|
||||
$this->message = trans('admin/hardware/message.import.file_delete_error');
|
||||
|
@ -536,8 +537,6 @@ class Importer extends Component
|
|||
return;
|
||||
}
|
||||
|
||||
// @todo: next up...handle the file being missing for other interactions...
|
||||
|
||||
if (Storage::delete('private_uploads/imports/' . $import->file_path)) {
|
||||
$import->delete();
|
||||
$this->message = trans('admin/hardware/message.import.file_delete_success');
|
||||
|
|
Loading…
Reference in a new issue