Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Solve [GLPI 9.4.4] Search doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilus authored and ddurieux committed Nov 29, 2019
1 parent c22c0a3 commit 78c8a58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function plugin_fusioninventory_getAddSearchOptions($itemtype) {

$sopt[5150]['table'] = 'glpi_plugin_fusioninventory_inventorycomputercomputers';
$sopt[5150]['field'] = 'last_fusioninventory_update';
$sopt[5150]['linkfield'] = 'id';
$sopt[5150]['name'] = __('FusInv', 'fusioninventory')." - ".
__('Last inventory', 'fusioninventory');
$sopt[5150]['datatype'] = 'datetime';
Expand Down Expand Up @@ -1219,11 +1218,11 @@ function plugin_fusioninventory_addLeftJoin($itemtype, $ref_table, $new_table, $
ON (`glpi_computers`.`id`=`glpi_plugin_fusioninventory_agents`.`computers_id`) ";
break;

case 'glpi_plugin_fusioninventory_inventorycomputercomputers.id':
case 'glpi_plugin_fusioninventory_inventorycomputercomputers.plugin_fusioninventory_inventorycomputercomputers_id':
return " LEFT JOIN `glpi_plugin_fusioninventory_inventorycomputercomputers`
AS glpi_plugin_fusioninventory_inventorycomputercomputers_id
AS glpi_plugin_fusioninventory_inventorycomputercomputers
ON (`glpi_computers`.`id` = ".
"`glpi_plugin_fusioninventory_inventorycomputercomputers_id`.".
"`glpi_plugin_fusioninventory_inventorycomputercomputers`.".
"`computers_id` ) ";

// ** FusionInventory - switch
Expand Down

0 comments on commit 78c8a58

Please sign in to comment.