Skip to content

Commit 53e0562

Browse files
authored
Fix(Task): Fix SQL query to get related credential (#37)
1 parent ab276e8 commit 53e0562

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [UNRELEASED]
9+
10+
## Fixed
11+
12+
- Fix foreign key constraint in `where` clause.
13+
814
## [1.0.1] - 2024-12-11
915

1016
### Fixed

inc/task.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public static function inventoryGetParams(array $params)
6363
],
6464
],
6565
'WHERE' => [
66-
$credential_type_table . '.id' => PluginDatabaseinventoryCredentialType::getModuleKeyByName($content->use),
67-
$databaseparam_credential_table . '.id' => $content->params_id,
66+
$credential_type_table . '.id' => PluginDatabaseinventoryCredentialType::getModuleKeyByName($content->use),
67+
$databaseparam_credential_table . '.plugin_databaseinventory_credentials_id' => $content->params_id,
6868
],
6969
];
7070

0 commit comments

Comments
 (0)