mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Removed debugging statements
This commit is contained in:
parent
35898e4ca0
commit
9247dc592b
|
@ -341,7 +341,6 @@ abstract class Importer
|
||||||
\Log::debug('Creating a user with the following attributes: '.print_r($user_array, true));
|
\Log::debug('Creating a user with the following attributes: '.print_r($user_array, true));
|
||||||
|
|
||||||
if ($user->save()) {
|
if ($user->save()) {
|
||||||
\Log::debug('Importer.php Name: '.$user->first_name.' '.$user->last_name.' ('.$user->username.')');
|
|
||||||
$this->log('User '.$user_array['username'].' created');
|
$this->log('User '.$user_array['username'].' created');
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,15 +44,10 @@ class UserImporter extends ItemImporter
|
||||||
$this->item['username'] = $this->findCsvMatch($row, 'username');
|
$this->item['username'] = $this->findCsvMatch($row, 'username');
|
||||||
$this->item['first_name'] = $this->findCsvMatch($row, 'first_name');
|
$this->item['first_name'] = $this->findCsvMatch($row, 'first_name');
|
||||||
$this->item['last_name'] = $this->findCsvMatch($row, 'last_name');
|
$this->item['last_name'] = $this->findCsvMatch($row, 'last_name');
|
||||||
\Log::debug('UserImporter.php Name: '.$this->item['first_name'].' '.$this->item['last_name'].' ('.$this->item['username'].')');
|
|
||||||
$this->item['email'] = $this->findCsvMatch($row, 'email');
|
$this->item['email'] = $this->findCsvMatch($row, 'email');
|
||||||
$this->item['phone'] = $this->findCsvMatch($row, 'phone_number');
|
$this->item['phone'] = $this->findCsvMatch($row, 'phone_number');
|
||||||
$this->item['jobtitle'] = $this->findCsvMatch($row, 'jobtitle');
|
$this->item['jobtitle'] = $this->findCsvMatch($row, 'jobtitle');
|
||||||
$this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0;
|
$this->item['activated'] = ($this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')) == 1) ? '1' : 0;
|
||||||
|
|
||||||
\Log::debug('UserImporter.php Activated: '.$this->findCsvMatch($row, 'activated'));
|
|
||||||
\Log::debug('UserImporter.php Activated fetchHumanBoolean: '. $this->fetchHumanBoolean($this->findCsvMatch($row, 'activated')));
|
|
||||||
|
|
||||||
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
|
$this->item['employee_num'] = $this->findCsvMatch($row, 'employee_num');
|
||||||
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));
|
$this->item['department_id'] = $this->createOrFetchDepartment($this->findCsvMatch($row, 'department'));
|
||||||
$this->item['manager_id'] = $this->fetchManager($this->findCsvMatch($row, 'manager_first_name'), $this->findCsvMatch($row, 'manager_last_name'));
|
$this->item['manager_id'] = $this->fetchManager($this->findCsvMatch($row, 'manager_first_name'), $this->findCsvMatch($row, 'manager_last_name'));
|
||||||
|
|
Loading…
Reference in a new issue