From 86e8e7fc1c6d98e85eeaebcb687fbe5d2411da8a Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 2 Mar 2017 10:59:58 +0100 Subject: [PATCH] Fixed module type order field in agent view. Ticket #392 --- pandora_console/include/ajax/module.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index e5ac8f8bb1..df85ab81e8 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -465,11 +465,11 @@ if ($list_modules) { switch ($sort) { case 'up': $selectTypeUp = $selected; - $order = array('field' => 'tagente_modulo.id_tipo_modulo', 'order' => 'ASC'); + $order = array('field' => 'tagente_modulo.id_modulo', 'order' => 'ASC'); break; case 'down': $selectTypeDown = $selected; - $order = array('field' => 'tagente_modulo.id_tipo_modulo', 'order' => 'DESC'); + $order = array('field' => 'tagente_modulo.id_modulo', 'order' => 'DESC'); break; } break; @@ -634,7 +634,6 @@ if ($list_modules) { else $count_modules = 0; - //Get monitors/modules // Get all module from agent switch ($config["dbtype"]) { @@ -652,7 +651,7 @@ if ($list_modules) { AND %s %s AND tagente_estado.estado != %d AND tagente_modulo.%s - ORDER BY tmodule_group.name , %s %s", + ORDER BY tmodule_group.name , %s %s", $id_agente, $status_text_monitor_sql,$status_module_group_filter,$status_filter_sql, $tags_sql, AGENT_MODULE_STATUS_NO_DATA, $status_module_group_filter, $order['field'], $order['order']);