mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop
This commit is contained in:
commit
6c1b434565
@ -1360,7 +1360,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
'color' => COL_GRAPH12, 'alpha' => 50);
|
'color' => COL_GRAPH12, 'alpha' => 50);
|
||||||
$color[15] = array('border' => '#000000',
|
$color[15] = array('border' => '#000000',
|
||||||
'color' => COL_GRAPH13, 'alpha' => 50);
|
'color' => COL_GRAPH13, 'alpha' => 50);
|
||||||
|
|
||||||
switch ($stacked) {
|
switch ($stacked) {
|
||||||
case CUSTOM_GRAPH_AREA:
|
case CUSTOM_GRAPH_AREA:
|
||||||
return area_graph($flash_charts, $graph_values, $width,
|
return area_graph($flash_charts, $graph_values, $width,
|
||||||
|
@ -469,17 +469,17 @@ if (is_ajax ()) {
|
|||||||
echo '<strong>'.__('Last contact').':</strong> '.human_time_comparation($agent['ultimo_contacto']).'<br />';
|
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 />';
|
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
|
# Fix : Only show agents with module with tags of user profile
|
||||||
$_user_tags = tags_get_user_tags($config['id_user'], 'RR');
|
$_user_tags = tags_get_user_tags($config['id_user'], 'RR');
|
||||||
|
|
||||||
|
$_sql_post = '';
|
||||||
|
if (is_array($_user_tags) && !empty($_user_tags)) {
|
||||||
|
|
||||||
$_sql_post = '';
|
$_tags = implode(',', array_keys($_user_tags));
|
||||||
if ($_user_tags !== false) {
|
|
||||||
|
$_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 . ')) ';
|
||||||
$_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,
|
$sql = sprintf ('SELECT tagente_modulo.descripcion,
|
||||||
tagente_modulo.nombre
|
tagente_modulo.nombre
|
||||||
|
Loading…
x
Reference in New Issue
Block a user