Skip to content

Commit 5128d0e

Browse files
authored
Fix(GetParams): use right foreign key (#77)
1 parent 12b6d80 commit 5128d0e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Fix foreign key constraint in SQL query.
1213
- Fix `Undefined array key "glpiname"` during database inventory task.
1314

1415
## [1.0.3] - 2025-07-10

inc/task.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function inventoryGetParams(array $params)
6464
],
6565
'WHERE' => [
6666
$credential_type_table . '.id' => PluginDatabaseinventoryCredentialType::getModuleKeyByName($content->use),
67-
$databaseparam_credential_table . '.plugin_databaseinventory_credentials_id' => $content->params_id,
67+
$databaseparam_credential_table . '.plugin_databaseinventory_databaseparams_id' => $content->params_id,
6868
],
6969
];
7070

0 commit comments

Comments
 (0)