From 78c8a58069114f8af329bc2070cacb9ac8a011d1 Mon Sep 17 00:00:00 2001 From: cyril ZORMAN Date: Wed, 9 Oct 2019 11:10:39 +0200 Subject: [PATCH] Solve [GLPI 9.4.4] Search doesn't work --- hook.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hook.php b/hook.php index 5ac98000ab..21cd4160c2 100644 --- a/hook.php +++ b/hook.php @@ -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'; @@ -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