mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed casing, fixed typo
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6f700ccc95
commit
1caf73f9da
|
@ -257,11 +257,8 @@ class ItemImporter extends Importer
|
|||
$item['category_id'] = $this->createOrFetchCategory($asset_model_category);
|
||||
|
||||
$asset_model->fill($item);
|
||||
//$asset_model = AssetModel::firstOrNew($item);
|
||||
$item = null;
|
||||
|
||||
|
||||
|
||||
if ($asset_model->save()) {
|
||||
$this->log('Asset Model '.$asset_model_name.' with model number '.$asset_modelNumber.' was created');
|
||||
|
||||
|
@ -289,7 +286,7 @@ class ItemImporter extends Importer
|
|||
$item_type = strtolower(substr($classname, 0, strpos($classname, 'Importer')));
|
||||
|
||||
// If we're importing asset models only (without attached assets), override the category type to asset
|
||||
if ($item_type == 'assetmodel') {
|
||||
if ($item_type == 'assetModel') {
|
||||
$item_type = 'asset';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue