Skip to content

Commit

Permalink
fix(issue): ambiguous column in SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 15, 2022
1 parent 1a5fe98 commit 9e86780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9e86780

Please sign in to comment.