fixed minor error order by desc event list
(cherry picked from commit 9a48e52208
)
This commit is contained in:
parent
013c40fed4
commit
d44dc61758
|
@ -112,7 +112,7 @@ function events_get_event ($id, $fields = false) {
|
|||
|
||||
function events_get_events_grouped($sql_post, $offset = 0,
|
||||
$pagination = 1, $meta = false, $history = false, $total = false,
|
||||
$history_db = false) {
|
||||
$history_db = false, $order = "ASC") {
|
||||
|
||||
global $config;
|
||||
|
||||
|
@ -148,7 +148,7 @@ function events_get_events_grouped($sql_post, $offset = 0,
|
|||
FROM $table te
|
||||
WHERE 1=1 " . $sql_post . "
|
||||
GROUP BY estado, evento, id_agentmodule" . $groupby_extra . "
|
||||
ORDER BY timestamp_rep ASC LIMIT " . $offset . "," . $pagination;
|
||||
ORDER BY timestamp_rep " . $order . " LIMIT " . $offset . "," . $pagination;
|
||||
}
|
||||
break;
|
||||
case "postgresql":
|
||||
|
|
|
@ -701,7 +701,10 @@ elseif ($group_rep == 1) {
|
|||
$offset,
|
||||
$pagination,
|
||||
$meta,
|
||||
$history);
|
||||
$history,
|
||||
false,
|
||||
false,
|
||||
'DESC');
|
||||
}
|
||||
elseif ($group_rep == 2) {
|
||||
$result = events_get_events_grouped_by_agent(
|
||||
|
|
Loading…
Reference in New Issue