2014-02-18 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/agentes/ver_agente.php: Fixed agent tooltip for metaconsole networkmap. Now check ACL tags are checked. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9446 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e99a72eb8f
commit
7b7db80c11
|
@ -1,3 +1,8 @@
|
|||
2014-02-18 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* operation/agentes/ver_agente.php: Fixed agent tooltip
|
||||
for metaconsole networkmap. Now check ACL tags are checked.
|
||||
|
||||
2014-02-17 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* operation/agentes/status_monitor.php: Fixed tag combo,
|
||||
|
|
|
@ -432,6 +432,17 @@ if (is_ajax ()) {
|
|||
echo '<strong>'.__('Last contact').':</strong> '.human_time_comparation($agent['ultimo_contacto']).'<br />';
|
||||
echo '<strong>'.__('Last remote contact').':</strong> '.human_time_comparation($agent['ultimo_contacto_remoto']).'<br />';
|
||||
|
||||
# Fix : Only show agents with module with tags of user profile
|
||||
$_user_tags = tags_get_user_tags($config['id_user'], 'RR');
|
||||
|
||||
$_sql_post = '';
|
||||
if ($_user_tags !== false) {
|
||||
|
||||
$_tags = implode(',', array_keys($_user_tags));
|
||||
|
||||
$_sql_post .= ' AND tagente_modulo.id_agente_modulo IN (SELECT a.id_agente_modulo FROM tagente_modulo a, ttag_module b WHERE a.id_agente_modulo=b.id_agente_modulo AND b.id_tag IN (' . $_tags . ')) ';
|
||||
|
||||
}
|
||||
|
||||
$sql = sprintf ('SELECT tagente_modulo.descripcion,
|
||||
tagente_modulo.nombre
|
||||
|
@ -440,6 +451,9 @@ if (is_ajax ()) {
|
|||
AND tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo
|
||||
AND tagente_modulo.disabled = 0
|
||||
AND tagente_estado.estado = 1', $id_agent);
|
||||
|
||||
$sql .= $_sql_post;
|
||||
|
||||
if ($metaconsole) {
|
||||
if (metaconsole_connect($server) != NOERR) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue