mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Merge branch 'hotfixes/use_modelno_if_no_name_in_import' into develop
This commit is contained in:
commit
59ce46dce7
|
@ -322,7 +322,9 @@ class ObjectImportCommand extends Command
|
|||
|
||||
$asset_model_name = $this->array_smart_fetch($row, "model name");
|
||||
$asset_modelno = $this->array_smart_fetch($row, "model number");
|
||||
if (empty($asset_model_name)) {
|
||||
if ((empty($asset_model_name)) && (!empty($asset_modelno))) {
|
||||
$asset_model_name = $asset_modelno;
|
||||
} elseif ((empty($asset_model_name)) && (empty($asset_modelno))) {
|
||||
$asset_model_name ='Unknown';
|
||||
}
|
||||
if (empty($asset_modelno)) {
|
||||
|
|
Loading…
Reference in a new issue