mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fix query agent events
This commit is contained in:
parent
a8a201cf19
commit
0b4ee35780
@ -2000,7 +2000,7 @@ if ($table_events) {
|
|||||||
include_once 'include/functions_graph.php';
|
include_once 'include/functions_graph.php';
|
||||||
|
|
||||||
$id_agente = (int) get_parameter('id_agente');
|
$id_agente = (int) get_parameter('id_agente');
|
||||||
$all_events_24h = (int) get_parameter('all_events_24h', 1);
|
$all_events_24h = (int) get_parameter('all_events_24h', 0);
|
||||||
|
|
||||||
// Fix: for tag functionality groups have to be all user_groups
|
// Fix: for tag functionality groups have to be all user_groups
|
||||||
// (propagate ACL funct!).
|
// (propagate ACL funct!).
|
||||||
|
@ -2404,14 +2404,11 @@ function events_print_event_table(
|
|||||||
$filter = '1 = 1';
|
$filter = '1 = 1';
|
||||||
}
|
}
|
||||||
|
|
||||||
$secondary_join = 'LEFT JOIN tagent_secondary_group tasg ON tevento.id_agente = tasg.id_agent';
|
|
||||||
|
|
||||||
$sql = sprintf(
|
$sql = sprintf(
|
||||||
'SELECT DISTINCT tevento.*
|
'SELECT DISTINCT tevento.*
|
||||||
FROM tevento %s
|
FROM tevento
|
||||||
WHERE %s %s
|
WHERE %s %s
|
||||||
ORDER BY utimestamp DESC LIMIT %d',
|
ORDER BY utimestamp DESC LIMIT %d',
|
||||||
$secondary_join,
|
|
||||||
$agent_condition,
|
$agent_condition,
|
||||||
$filter,
|
$filter,
|
||||||
$limit
|
$limit
|
||||||
|
@ -43,7 +43,7 @@ html_print_div(
|
|||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
events_table(1);
|
events_table(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
function events_table(all_events_24h){
|
function events_table(all_events_24h){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user