mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -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);
|
$import = Import::find($id);
|
||||||
|
|
||||||
// Check that the import wasn't deleted after while page was already loaded...
|
// 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) {
|
if (!$import) {
|
||||||
// @todo: improve error message
|
// @todo: improve error message
|
||||||
$this->message = trans('admin/hardware/message.import.file_delete_error');
|
$this->message = trans('admin/hardware/message.import.file_delete_error');
|
||||||
|
@ -536,8 +537,6 @@ class Importer extends Component
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo: next up...handle the file being missing for other interactions...
|
|
||||||
|
|
||||||
if (Storage::delete('private_uploads/imports/' . $import->file_path)) {
|
if (Storage::delete('private_uploads/imports/' . $import->file_path)) {
|
||||||
$import->delete();
|
$import->delete();
|
||||||
$this->message = trans('admin/hardware/message.import.file_delete_success');
|
$this->message = trans('admin/hardware/message.import.file_delete_success');
|
||||||
|
|
Loading…
Reference in a new issue