9987 New inventory view - Pending Meta design

This commit is contained in:
Pablo Aragon 2023-01-26 10:06:27 +01:00
parent 3ebd958298
commit 64fabf28c5
2 changed files with 3 additions and 4 deletions

View File

@ -770,8 +770,6 @@ function inventory_get_datatable(
}
}
// hd($module_rows);
// echo '<script>console.log('.json_encode($module_rows).');</script>';
return $module_rows;
} else {
$agents_rows = [];

View File

@ -360,7 +360,8 @@ $table->data[0][1] .= '</div>';
$table->data[0][2] = '<strong>'.__('Module').'</strong>';
if ($is_metaconsole === true) {
$table->data[0][3] = html_print_select($fields, 'module_inventory_general_view', $inventory_module, $filteringFunction, __('Basic info'), 0, true, false, true, '', false, 'min-width: 194px; max-width: 200px;');
// array_unshift($fields, __('All'));
$table->data[0][3] = html_print_select($fields, 'module_inventory_general_view', $inventory_module, $filteringFunction, __('All'), 0, true, false, true, '', false, 'min-width: 194px; max-width: 200px;');
} else {
$sql = 'SELECT name as indexname, name
FROM tmodule_inventory, tagent_module_inventory
@ -381,7 +382,7 @@ if ($is_metaconsole === true) {
$fields[$id] = $value;
}
array_unshift($fields, 'All');
array_unshift($fields, __('All'));
$table->data[0][3] = html_print_select($fields, 'module_inventory_general_view', $inventory_module, '', __('Basic info'), 'basic', true, false, false);
}