Fixed #17796 - search on model name and number on importer

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-09-03 15:15:29 +01:00
parent 605022a9e3
commit 090890e9c6

View File

@@ -40,7 +40,7 @@ class AssetModelImporter extends ItemImporter
{
$editingAssetModel = false;
$assetModel = AssetModel::where('name', '=', $this->findCsvMatch($row, 'name'))->first();
$assetModel = AssetModel::where('name', '=', $this->findCsvMatch($row, 'name'))->where('model_number', '=', $this->findCsvMatch($row, 'model_number'))->first();
if ($assetModel) {
if (! $this->updating) {