Skip to content

Commit

Permalink
Fix product reference display; fixes #291
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr authored and cedric-anne committed Feb 4, 2022
1 parent 33f4181 commit a9f0417
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,6 @@ function plugin_order_getAddSearchOptions($itemtype) {
}


function plugin_order_addSelect($type, $ID, $num) {
$searchopt = &Search::getOptions($type);
$table = $searchopt[$ID]["table"];
$field = $searchopt[$ID]["field"];

if ($table == "glpi_plugin_order_references"
&& $num != 0) {
return "`$table`.`itemtype`, `$table`.`$field` AS `ITEM_$num`, ";
} else {
return "";
}
}


function plugin_order_addLeftJoin($type, $ref_table, $new_table, $linkfield, &$already_link_tables) {
$out = "";
switch ($new_table) {
Expand Down

0 comments on commit a9f0417

Please sign in to comment.