diff --git a/CHANGELOG.md b/CHANGELOG.md index 2af4cf4..c03a33e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed +- Fix foreign key constraint in SQL query. - Fix `Undefined array key "glpiname"` during database inventory task. ## [1.0.3] - 2025-07-10 diff --git a/inc/task.class.php b/inc/task.class.php index c5bcb2b..6154a62 100644 --- a/inc/task.class.php +++ b/inc/task.class.php @@ -64,7 +64,7 @@ public static function inventoryGetParams(array $params) ], 'WHERE' => [ $credential_type_table . '.id' => PluginDatabaseinventoryCredentialType::getModuleKeyByName($content->use), - $databaseparam_credential_table . '.plugin_databaseinventory_credentials_id' => $content->params_id, + $databaseparam_credential_table . '.plugin_databaseinventory_databaseparams_id' => $content->params_id, ], ];