From 9e867808020c3ef34bd11cd4305df3324cf38b1a Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 15 Feb 2022 11:35:04 +0100 Subject: [PATCH] fix(issue): ambiguous column in SQL query --- hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hook.php b/hook.php index 341ea0733..39692b866 100644 --- a/hook.php +++ b/hook.php @@ -167,7 +167,7 @@ function plugin_formcreator_addDefaultWhere($itemtype) { $complexJoinId = Search::computeComplexJoinID(Search::getOptions($itemtype)[11]['joinparams']); $condition .= " OR `glpi_users_users_id_validate_$complexJoinId`.`id` = '$currentUser'"; // Add users_id_recipient - $condition .= " OR `users_id_recipient` = $currentUser "; + $condition .= " OR `glpi_plugin_formcreator_issues`.`users_id_recipient` = $currentUser "; return "($condition)"; break;