Fixed module type order field in agent view. Ticket #392

This commit is contained in:
Arturo Gonzalez 2017-03-02 10:59:58 +01:00
parent c527aa243b
commit 86e8e7fc1c

View File

@ -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"]) {