diff --git a/inc/deploygroup.class.php b/inc/deploygroup.class.php index be76275e42..b374f4dd03 100644 --- a/inc/deploygroup.class.php +++ b/inc/deploygroup.class.php @@ -695,7 +695,7 @@ public static function getSearchParamsAsAnArray(PluginGlpiinventoryDeployGroup $ } $computers_params["reset"] = true; - return Search::manageParams('Computer', $computers_params, true, false); + return Search::manageParams('Computer', $computers_params, false, false); } diff --git a/inc/deploygroup_staticdata.class.php b/inc/deploygroup_staticdata.class.php index 672679b52a..30d21af1cb 100644 --- a/inc/deploygroup_staticdata.class.php +++ b/inc/deploygroup_staticdata.class.php @@ -170,7 +170,7 @@ public static function showCriteriaAndSearch(PluginGlpiinventoryDeployGroup $ite $search_params['massiveactionparams']['extraparams']['specific_actions']['PluginGlpiinventoryComputer' . MassiveAction::CLASS_ACTION_SEPARATOR . 'add'] = __('Add to static group', 'glpiinventory'); $search_params['massiveactionparams']['extraparams']['massive_action_fields'] = ['action', 'id']; - $backup_computer_search = $_SESSION['glpisearch']['Computer']; + //$backup_computer_search = $_SESSION['glpisearch']['Computer']; $data = Search::prepareDatasForSearch('Computer', $search_params); $data['itemtype'] = 'Computer'; Search::constructSQL($data); @@ -181,7 +181,7 @@ public static function showCriteriaAndSearch(PluginGlpiinventoryDeployGroup $ite $_SESSION['glpilist_limit'] = 200; Search::displayData($data); $_SESSION['glpilist_limit'] = $limit_backup; - $_SESSION['glpisearch']['Computer'] = $backup_computer_search; + //$_SESSION['glpisearch']['Computer'] = $backup_computer_search; //remove trashbin switch echo Html::scriptBlock("