Merge branch 'ent-8251-fallo-a-la-hora-de-guardar-ip-de-agente' into 'develop'

Fix delete agent secondary ip bug

See merge request artica/pandorafms!4551
This commit is contained in:
Daniel Rodriguez 2021-11-26 07:57:40 +00:00
commit 67f85f92e2
1 changed files with 5 additions and 2 deletions

View File

@ -1078,8 +1078,11 @@ if ($update_agent) {
// If IP is set for deletion, delete first.
if ($action_delete_ip) {
$delete_ip = get_parameter_post('address_list');
$direccion_agente = agents_delete_address($id_agente, $delete_ip);
if (empty($direccion_agente) === true) {
$direccideon_agente = agents_delete_address($id_agente, $delete_ip);
} else {
agents_delete_address($id_agente, $delete_ip);
}
}
$values = [