diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index c4e597bda0..ad59b0eaf7 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,12 @@ +2013-07-05 Miguel de Dios + + * include/functions_events.php: erased lost debug trace. + + * mobile/operation/events.php: some fixes in the pagination, and + now the events from the system show the name "system". + + MERGED FROM BRANCH 4.0 + 2013-07-05 Miguel de Dios * mobile/operation/agents.php, mobile/include/style/main.css: some diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 01c727487d..10dc29f82e 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1237,8 +1237,6 @@ function events_get_group_events_steps ($begin, &$result, $id_group, $period, $d ORDER BY utimestamp ASC', $datelimit, $date, implode (",", $id_group)); - //html_debug_print($sql); - return db_get_all_row_by_steps_sql($begin, $result, $sql); } diff --git a/pandora_console/mobile/operation/events.php b/pandora_console/mobile/operation/events.php index e42d40647a..7ba8bda630 100644 --- a/pandora_console/mobile/operation/events.php +++ b/pandora_console/mobile/operation/events.php @@ -100,8 +100,14 @@ class Events { $row[] = '' . __('Timestamp') . '' . ui_print_timestamp ($event['timestamp_rep'], true); + if ($event["id_agente"] == 0) { + $agent_name = __('System'); + } + else { + $agent_name = ui_print_agent_name ($event["id_agente"], true); + } $row[] = '' . __('Agent') . '' . - ui_print_agent_name ($event["id_agente"], true); + $agent_name; $status = html_print_image ("mobile/images/" . @@ -302,6 +308,7 @@ class Events { $this->status = 3; } else { + $this->status = (int)$this->status; $this->default = false; } @@ -676,6 +683,7 @@ class Events { //-------------------------------------------------------------- + $events_db = events_get_events_grouped($sql_post, $page * $system->getPageSize(), $system->getPageSize(), false, false); if (empty($events_db)) {