Skip to content

Commit

Permalink
fix(issue): default joint for issue
Browse files Browse the repository at this point in the history
missed in #2959
  • Loading branch information
btry committed Oct 31, 2022
1 parent a02a9c7 commit 631888e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ function plugin_formcreator_addDefaultJoin($itemtype, $ref_table, &$already_link
case PluginFormcreatorIssue::class:
// Get default joins for tickets
$join = Search::addDefaultJoin(Ticket::getType(), Ticket::getTable(), $already_link_tables);
$join .= Search::addLeftJoin($itemtype, $ref_table, $already_link_tables, Group::getTable(), 'groups_id_validator');
// but we want to join in issues
$join = str_replace('`glpi_tickets`.`id`', '`glpi_plugin_formcreator_issues`.`itemtype` = "Ticket" AND `glpi_plugin_formcreator_issues`.`items_id`', $join);
$join = str_replace('`glpi_tickets`', '`glpi_plugin_formcreator_issues`', $join);
Expand Down

0 comments on commit 631888e

Please sign in to comment.