mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Removed error log
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f87ebb4710
commit
752221ee84
|
@ -69,31 +69,30 @@ class Importer extends Component
|
||||||
|
|
||||||
private function getColumns($type)
|
private function getColumns($type)
|
||||||
{
|
{
|
||||||
\Log::error($type);
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'asset':
|
case 'asset':
|
||||||
$results = $this->assets_fields;
|
$results = $this->assets_fields;
|
||||||
break;
|
break;
|
||||||
|
case 'assetmodel':
|
||||||
|
$results = $this->assetmodels_fields;
|
||||||
|
break;
|
||||||
case 'accessory':
|
case 'accessory':
|
||||||
$results = $this->accessories_fields;
|
$results = $this->accessories_fields;
|
||||||
break;
|
break;
|
||||||
case 'consumable':
|
|
||||||
$results = $this->consumables_fields;
|
|
||||||
break;
|
|
||||||
case 'component':
|
case 'component':
|
||||||
$results = $this->components_fields;
|
$results = $this->components_fields;
|
||||||
break;
|
break;
|
||||||
|
case 'consumable':
|
||||||
|
$results = $this->consumables_fields;
|
||||||
|
break;
|
||||||
case 'license':
|
case 'license':
|
||||||
$results = $this->licenses_fields;
|
$results = $this->licenses_fields;
|
||||||
break;
|
break;
|
||||||
case 'user':
|
|
||||||
$results = $this->users_fields;
|
|
||||||
break;
|
|
||||||
case 'location':
|
case 'location':
|
||||||
$results = $this->locations_fields;
|
$results = $this->locations_fields;
|
||||||
break;
|
break;
|
||||||
case 'assetmodel':
|
case 'user':
|
||||||
$results = $this->assetmodels_fields;
|
$results = $this->users_fields;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$results = [];
|
$results = [];
|
||||||
|
@ -136,7 +135,6 @@ class Importer extends Component
|
||||||
}
|
}
|
||||||
// if you got here, we didn't find a match. Try the $aliases_fields
|
// if you got here, we didn't find a match. Try the $aliases_fields
|
||||||
foreach ($this->aliases_fields as $key => $alias_values) {
|
foreach ($this->aliases_fields as $key => $alias_values) {
|
||||||
\Log::error('No matches');
|
|
||||||
foreach ($alias_values as $alias_value) {
|
foreach ($alias_values as $alias_value) {
|
||||||
if (strcasecmp($alias_value, $header) === 0) { // aLsO CaSe-INSENSitiVE!
|
if (strcasecmp($alias_value, $header) === 0) { // aLsO CaSe-INSENSitiVE!
|
||||||
// Make *absolutely* sure that this key actually _exists_ in this import type -
|
// Make *absolutely* sure that this key actually _exists_ in this import type -
|
||||||
|
@ -158,14 +156,14 @@ class Importer extends Component
|
||||||
{
|
{
|
||||||
$this->authorize('import');
|
$this->authorize('import');
|
||||||
$this->importTypes = [
|
$this->importTypes = [
|
||||||
'asset' => trans('general.assets'),
|
|
||||||
'accessory' => trans('general.accessories'),
|
'accessory' => trans('general.accessories'),
|
||||||
'consumable' => trans('general.consumables'),
|
'asset' => trans('general.assets'),
|
||||||
'component' => trans('general.components'),
|
|
||||||
'license' => trans('general.licenses'),
|
|
||||||
'user' => trans('general.users'),
|
|
||||||
'location' => trans('general.locations'),
|
|
||||||
'assetmodel' => trans('general.asset_models'),
|
'assetmodel' => trans('general.asset_models'),
|
||||||
|
'component' => trans('general.components'),
|
||||||
|
'consumable' => trans('general.consumables'),
|
||||||
|
'license' => trans('general.licenses'),
|
||||||
|
'location' => trans('general.locations'),
|
||||||
|
'user' => trans('general.users'),
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue