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:
commit
eec1e044c3
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue