fixed agent id strange behavior in events table

This commit is contained in:
alejandro-campos 2020-05-25 11:12:29 +02:00
parent b595548eee
commit 1d167d4aba
1 changed files with 1 additions and 11 deletions

View File

@ -1962,17 +1962,7 @@ function process_datatables_item(item) {
/* Agent ID link */
if (item.id_agente > 0) {
<?php
if (in_array('agent_name', $fields)) {
?>
item.id_agente = '<a href="'+url_link+item.id_agente+url_link_hash+'">' + item.id_agente + '</a>';
<?php
} else {
?>
item.id_agente = '<a href="'+url_link+item.id_agente+url_link_hash+'">' + item.agent_name + '</a>';
<?php
}
?>
item.id_agente = '<a href="'+url_link+item.id_agente+url_link_hash+'">' + item.id_agente + '</a>';
} else {
item.id_agente = '';
}