mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Merge pull request #2191 from dmeltzer/importer-improves
Importer: Show the name of the item with errors in the table.
This commit is contained in:
commit
65dfd23021
|
@ -340,7 +340,7 @@ class ObjectImportCommand extends Command
|
|||
$this->log('Asset Model ' . $asset_model_name . ' with model number ' . $asset_modelno . ' was created');
|
||||
return $asset_model;
|
||||
} else {
|
||||
$this->jsonError('Asset Model', $asset_model->getErrors());
|
||||
$this->jsonError('Asset Model ' . $asset_model_name, $asset_model->getErrors());
|
||||
return $asset_model;
|
||||
}
|
||||
} else {
|
||||
|
@ -387,7 +387,7 @@ class ObjectImportCommand extends Command
|
|||
$this->log('Category ' . $asset_category . ' was created');
|
||||
return $category;
|
||||
} else {
|
||||
$this->jsonError('Category', $category->getErrors());
|
||||
$this->jsonError('Category '. $asset_category, $category->getErrors());
|
||||
return $category;
|
||||
}
|
||||
} else {
|
||||
|
@ -462,7 +462,7 @@ class ObjectImportCommand extends Command
|
|||
$this->log('Status ' . $asset_statuslabel_name . ' was created');
|
||||
return $status;
|
||||
} else {
|
||||
$this->jsonError('Status', $status->getErrors());
|
||||
$this->jsonError('Status '. $asset_statuslabel_name, $status->getErrors());
|
||||
return $status;
|
||||
}
|
||||
} else {
|
||||
|
@ -511,7 +511,7 @@ class ObjectImportCommand extends Command
|
|||
$this->log('Manufacturer ' . $manufacturer->name . ' was created');
|
||||
return $manufacturer;
|
||||
} else {
|
||||
$this->jsonError('Manufacturer', $manufacturer->getErrors());
|
||||
$this->jsonError('Manufacturer '. $manufacturer->name, $manufacturer->getErrors());
|
||||
return $manufacturer;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue