#11560 Fix reporting inventory
This commit is contained in:
parent
d0998432df
commit
40dfca0ea6
|
@ -1219,7 +1219,7 @@ $class = 'databox filters';
|
|||
<?php
|
||||
html_print_select(
|
||||
$servers,
|
||||
'combo_server_sql',
|
||||
'combo_server',
|
||||
$server_name,
|
||||
''
|
||||
);
|
||||
|
@ -1240,7 +1240,7 @@ $class = 'databox filters';
|
|||
<?php
|
||||
html_print_select(
|
||||
$servers_all_opt,
|
||||
'combo_server',
|
||||
'combo_server_sql',
|
||||
$server_name,
|
||||
'',
|
||||
$nothing,
|
||||
|
@ -7193,6 +7193,8 @@ function chooseType() {
|
|||
);
|
||||
});
|
||||
|
||||
$("#combo_server").trigger('change');
|
||||
|
||||
$("#combo_group").change(function() {
|
||||
$('#hidden-date_selected').val('');
|
||||
updateInventoryDates(
|
||||
|
|
|
@ -1757,6 +1757,10 @@ switch ($action) {
|
|||
'inventory_modules'
|
||||
);
|
||||
$es['inventory_regular_expression'] = get_parameter('inventory_regular_expression', '');
|
||||
if (is_metaconsole() === true) {
|
||||
$es['inventory_server'] = get_parameter('combo_server');
|
||||
}
|
||||
|
||||
$description = get_parameter('description');
|
||||
$values['external_source'] = json_encode($es);
|
||||
$good_format = true;
|
||||
|
|
|
@ -63,7 +63,12 @@ function inventory_get_data(
|
|||
array_push($where, 'id_agente IN ('.implode(',', $agents_ids).')');
|
||||
}
|
||||
|
||||
foreach ($inventory_module_name as $key => $module_name) {
|
||||
$inventory_module_name[$key] = io_safe_output($module_name);
|
||||
}
|
||||
|
||||
if ($inventory_module_name[0] !== '0'
|
||||
&& $inventory_module_name[0] !== 0
|
||||
&& $inventory_module_name !== ''
|
||||
&& $inventory_module_name !== 'all'
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue