Merge branch 'ent-5727-Eventos-campos-Agent-ID-y-Agent-name' into 'develop'

fixed agent id strange behavior in events table

See merge request artica/pandorafms!3231
This commit is contained in:
Daniel Rodriguez 2020-06-15 08:29:37 +02:00
commit 38e4281395
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 = '';
}