Merge branch 'ent-7952-comportamiento-extrano-procesamiento-dataserver' into 'develop'

Do not search the agent name in tagente.direccion.

See merge request artica/pandorafms!4387
This commit is contained in:
Daniel Rodriguez 2021-09-23 14:51:48 +00:00
commit 7a2c992c44
1 changed files with 2 additions and 2 deletions

View File

@ -273,9 +273,9 @@ sub get_agent_id ($$) {
my $rc;
if($is_meta == 1) {
$rc = get_db_value ($dbh, "SELECT id_agente FROM tmetaconsole_agent WHERE nombre = ? OR direccion = ?", safe_input($agent_name), $agent_name);
$rc = get_db_value ($dbh, "SELECT id_agente FROM tmetaconsole_agent WHERE nombre = ?", safe_input($agent_name));
} else {
$rc = get_db_value ($dbh, "SELECT id_agente FROM tagente WHERE nombre = ? OR direccion = ?", safe_input($agent_name), $agent_name);
$rc = get_db_value ($dbh, "SELECT id_agente FROM tagente WHERE nombre = ?", safe_input($agent_name));
}
return defined ($rc) ? $rc : -1;