mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
On ly show module group of this agent use. Tiquet: #2991
This commit is contained in:
parent
78d3bfeea2
commit
ec1e604fc6
@ -437,13 +437,8 @@ function print_form_filter_monitors($id_agent, $status_filter_monitor = -1,
|
|||||||
$table->data[0][3] = html_print_input_text('status_text_monitor', $status_text_monitor, '', 30, 100, true);
|
$table->data[0][3] = html_print_input_text('status_text_monitor', $status_text_monitor, '', 30, 100, true);
|
||||||
$table->data[0][4] = __('Module group');
|
$table->data[0][4] = __('Module group');
|
||||||
$rows = db_get_all_rows_sql("SELECT *
|
$rows = db_get_all_rows_sql("SELECT *
|
||||||
FROM tmodule_group ORDER BY name");
|
FROM tmodule_group where id_mg in (SELECT id_module_group from tagente_modulo where id_agente = $id_agent ) ORDER BY name");
|
||||||
$rows = io_safe_output($rows);
|
|
||||||
$rows_count = count($rows);
|
|
||||||
for ($i = 0; $i < $rows_count; $i++) {
|
|
||||||
$rows[$i]['name'] = ui_print_truncate_text($rows[$i]['name'], 35);
|
|
||||||
}
|
|
||||||
$rows_select = array();
|
|
||||||
if (!empty($rows)) {
|
if (!empty($rows)) {
|
||||||
$rows_select[-1] = __('All');
|
$rows_select[-1] = __('All');
|
||||||
foreach ($rows as $module_group)
|
foreach ($rows as $module_group)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user