Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Aug 10, 2018
1 parent 3b1c1c5 commit d68ec3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/bios.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static function getBiosLockableFields($plugin_ocsinventoryng_ocsservers_id = 0)
* @param array $params
*
*/
static function updateComputerFromBios($params = []) {
static function updateComputerBios($params = []) {

$compupdate = [];

Expand Down
3 changes: 2 additions & 1 deletion inc/ocslink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,7 @@ static function updateLock($plugin_ocsinventoryng_ocsservers_id, $computers_id,
'dohistory' => $cfg_ocs['history_hardware'],
'HARDWARE' => $ocsComputer['HARDWARE'],
'BIOS' => $ocsComputer['BIOS'],
'force' => 0,
];

if (array_key_exists($field,
Expand All @@ -1295,7 +1296,7 @@ static function updateLock($plugin_ocsinventoryng_ocsservers_id, $computers_id,
}
if (array_key_exists($field,
PluginOcsinventoryngBios::getBiosLockableFields($plugin_ocsinventoryng_ocsservers_id))) {
PluginOcsinventoryngBios::updateComputerFromBios($params);
PluginOcsinventoryngBios::updateComputerBios($params);
}
if (array_key_exists($field,
PluginOcsinventoryngOS::getOSLockableFields($plugin_ocsinventoryng_ocsservers_id))) {
Expand Down
2 changes: 1 addition & 1 deletion inc/ocsprocess.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ static function synchronizeComputer($sync_params) {
}
if ($updates['bios']) {
$params['BIOS'] = $ocsComputer['BIOS'];
PluginOcsinventoryngBios::updateComputerFromBios($params);
PluginOcsinventoryngBios::updateComputerBios($params);
}

$params_devices = ['computers_id' => $line['computers_id'],
Expand Down

0 comments on commit d68ec3c

Please sign in to comment.