Add order data in metaconsole enterprise. Tiquet: #2232
(cherry picked from commit 25106d8383
)
This commit is contained in:
parent
c343ca36ef
commit
4c52129186
|
@ -661,6 +661,22 @@ switch ($sortField) {
|
|||
break;
|
||||
}
|
||||
break;
|
||||
case 'data':
|
||||
switch ($sort) {
|
||||
case 'up':
|
||||
$selectTimestampUp = $selected;
|
||||
$order = array(
|
||||
'field' => 'tagente_estado.datos',
|
||||
'order' => 'ASC');
|
||||
break;
|
||||
case 'down':
|
||||
$selectTimestampDown = $selected;
|
||||
$order = array(
|
||||
'field' => 'tagente_estado.datos',
|
||||
'order' => 'DESC');
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$selectAgentNameUp = $selected;
|
||||
$selectAgentNameDown = '';
|
||||
|
@ -958,6 +974,10 @@ $table->align[8] = "left";
|
|||
|
||||
$table->head[9] = __('Data');
|
||||
$table->align[9] = "left";
|
||||
if ( defined ('METACONSOLE') ) {
|
||||
$table->head[9] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&modulegroup='.$modulegroup . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . $ag_custom_fields_params . '&sort_field=data&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '</a>' .
|
||||
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&modulegroup='.$modulegroup . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . $ag_custom_fields_params . '&sort_field=data&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . '</a>';
|
||||
}
|
||||
|
||||
$table->head[10] = __('Timestamp');
|
||||
if (! defined ('METACONSOLE')) {
|
||||
|
|
Loading…
Reference in New Issue