Merge branch 'ent-10223-eliminar-descripcion-por-defecto-al-crear-agentes-desde-data-server' into 'develop'

Ent 10223 eliminar descripcion por defecto al crear agentes desde data server

See merge request artica/pandorafms!5481
This commit is contained in:
Rafael Ameijeiras 2023-01-31 14:02:56 +00:00
commit 957097f34b
1 changed files with 1 additions and 1 deletions

View File

@ -3886,7 +3886,7 @@ sub pandora_create_agent ($$$$$$$$$$;$$$$$$$$$$) {
$agent_mode = 1 unless defined($agent_mode); $agent_mode = 1 unless defined($agent_mode);
$alias = $agent_name unless defined($alias); $alias = $agent_name unless defined($alias);
$description = "Created by $server_name" unless (defined($description) && $description ne ''); $description = '' unless (defined($description));
my ($columns, $values) = db_insert_get_values ({ 'nombre' => safe_input($agent_name), my ($columns, $values) = db_insert_get_values ({ 'nombre' => safe_input($agent_name),
'direccion' => $address, 'direccion' => $address,
'comentarios' => $description, 'comentarios' => $description,