Skip to content

Commit

Permalink
Min fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Feb 23, 2022
1 parent f49feef commit 7650f9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/hardware.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ static function updateComputerFields($line_links, $data, $cfg_ocs) {
}
}

if (isset($data['users_id'])) {
$tmp['users_id'] = $data['users_id'];
}

//If there's a recursive to update
if (isset($data['is_recursive'])) {
$tmp['is_recursive'] = $data['is_recursive'];
Expand Down Expand Up @@ -416,6 +420,9 @@ static function getFields($ocsComputer, $cfg_ocs, &$values, $computers_id = 0) {
$user_id = $DB->result($result, 0, 0);
$user = new User();
$user->getFromDB($user_id);

$values['users_id'] = $user_id;

if ($cfg_ocs["import_user_location"] > 0) {
$values['locations_id'] = $user->fields["locations_id"];
}
Expand Down

0 comments on commit 7650f9c

Please sign in to comment.