Skip to content

Commit 1caf73f

Browse files
committed
Fixed casing, fixed typo
Signed-off-by: snipe <[email protected]>
1 parent 6f700cc commit 1caf73f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/Importer/ItemImporter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,8 @@ public function createOrFetchAssetModel(array $row)
257257
$item['category_id'] = $this->createOrFetchCategory($asset_model_category);
258258

259259
$asset_model->fill($item);
260-
//$asset_model = AssetModel::firstOrNew($item);
261260
$item = null;
262261

263-
264-
265262
if ($asset_model->save()) {
266263
$this->log('Asset Model '.$asset_model_name.' with model number '.$asset_modelNumber.' was created');
267264

@@ -289,7 +286,7 @@ public function createOrFetchCategory($asset_category)
289286
$item_type = strtolower(substr($classname, 0, strpos($classname, 'Importer')));
290287

291288
// If we're importing asset models only (without attached assets), override the category type to asset
292-
if ($item_type == 'assetmodel') {
289+
if ($item_type == 'assetModel') {
293290
$item_type = 'asset';
294291
}
295292

0 commit comments

Comments
 (0)