Skip to content

Commit ddf9090

Browse files
authored
fix(Core): fix last_inventory_date update from LastHWScan
1 parent 5044f22 commit ddf9090

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
### Fixed
13+
14+
- Fix option ```Use LastHWScan``` that no longer worked.
15+

inc/config.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static function showConfigForm($item) {
303303
echo "</td></tr>\n";
304304

305305
echo "<tr class='tab_bg_1'>";
306-
echo "<td>".__("Use LastHWScan as GLPI last inventory", "sccm")."</td><td>";
306+
echo "<td>".__("Use LastHWScan as GLPI last inventory date", "sccm")."</td><td>";
307307
Dropdown::showYesNo("use_lasthwscan", $config->getField('use_lasthwscan'));
308308
echo "</td></tr>\n";
309309

inc/sccm.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static function executePush($task) {
650650
$asset = new $agent->fields['itemtype']();
651651
if ($asset->getFromDB($agent->fields['items_id'])) {
652652
$asset->update([
653-
"id" => $agent->fields['id'],
653+
"id" => $asset->fields['id'],
654654
"last_inventory_update" => $tab['vWD-LastScan']->format('Y-m-d h:i')
655655
]);
656656
}

0 commit comments

Comments
 (0)