Skip to content

Commit

Permalink
Fix OS change. Thanks 88ee55. Fix #248
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Oct 27, 2020
1 parent fea0740 commit f8818f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/os.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static function updateComputerOS($options = []) {

$device = new Item_OperatingSystem();

if ($force) {
if ($force || $computerOS != $hardware["OSNAME"]) {
self::resetOS($options['computers_id'], $uninstall_history);
}

Expand Down

1 comment on commit f8818f2

@hgpit
Copy link

@hgpit hgpit commented on f8818f2 Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I'm just picking this one up on behalf of my colleague. The code is there as per the last update

$device = new Item_OperatingSystem();

     if ($force || $computerOS != $hardware["OSNAME"]) {
        self::resetOS($options['computers_id'], $uninstall_history);
     }

But the syncs still do not seem to work. OCS shows the correct details but its not updating GLPI.

image
image

Please sign in to comment.