3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 17:15:38 +00:00

Merge pull request #18306 from fdiaz3000/change-import-assetmodel

Change title_class to ucfirst in Object Import Command to allow AssetModel
This commit is contained in:
snipe
2025-12-08 17:05:23 +00:00
committed by GitHub

View File

@ -56,7 +56,7 @@ class ObjectImportCommand extends Command
$this->progressIndicator = new ProgressIndicator($this->output);
$filename = $this->argument('filename');
$class = title_case($this->option('item-type'));
$class = ucfirst($this->option('item-type'));
$classString = "App\\Importer\\{$class}Importer";
$importer = new $classString($filename);
$importer->setCallbacks([$this, 'log'], [$this, 'progress'], [$this, 'errorCallback'])