mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Use model number if model name is blank
This commit is contained in:
parent
1793461642
commit
2dbd1089f5
|
@ -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