Fixed the empty list of events.

This commit is contained in:
mdtrooper 2015-05-22 15:00:06 +02:00
parent a19e4cdbf5
commit fcd6927efb
3 changed files with 9 additions and 3 deletions

View File

@ -123,6 +123,8 @@ else {
}
}
if ($meta) {
//There is another filter.
}

View File

@ -224,12 +224,14 @@ $server_id = (int)get_parameter('server_id', 0);
$text_agent = (string) get_parameter("text_agent");
$text_agent = (string) get_parameter("text_agent", __('All'));
$id_agent = get_parameter('id_agent', 0);
if ($id_agent != 0) {
$text_agent = db_get_value('nombre', 'tagente', 'id_agente', $id_agent);
if ($text_agent == false) {
$text_agent = '';
$text_agent = __('All');
$id_agent = 0;
}
}

View File

@ -141,11 +141,13 @@ $strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_use
// Get the tags where the user have permissions in Events reading tasks
$tags = tags_get_user_tags($config['id_user'], 'ER');
if ($id_agent == 0 && $text_agent != __('All')) {
$id_agent = -1;
}
/////////////////////////////////////////////
// Build the condition of the events query