Merge branch '1922-error-paginado-eventos-meta-dev' into 'develop'

Added tmetaconsole_agent in function agents_get_alias

See merge request artica/pandorafms!1394
This commit is contained in:
vgilc 2018-03-26 12:38:51 +02:00
commit eec1e044c3
1 changed files with 5 additions and 1 deletions

View File

@ -1354,7 +1354,11 @@ function agents_get_name ($id_agent, $case = "none") {
* @return string Alias of the given agent.
*/
function agents_get_alias ($id_agent, $case = 'none') {
$alias = (string) db_get_value ('alias', 'tagente', 'id_agente', (int) $id_agent);
if(is_metaconsole()){
$alias = (string) db_get_value ('alias', 'tmetaconsole_agent', 'id_tagente', (int) $id_agent);
} else {
$alias = (string) db_get_value ('alias', 'tagente', 'id_agente', (int) $id_agent);
}
switch ($case) {
case 'upper':