mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'ent-3328-7200-correcciones-consola-vmware' into 'develop'
Ent 3328 7200 correcciones consola vmware See merge request artica/pandorafms!2126 Former-commit-id: e050791eefa12e7df5348fb190788be539e56c05
This commit is contained in:
commit
d0ded14018
@ -396,7 +396,7 @@ sub process_xml_data ($$$$$) {
|
|||||||
|
|
||||||
# If it exists add the value to the agent
|
# If it exists add the value to the agent
|
||||||
if (defined ($custom_field_info)) {
|
if (defined ($custom_field_info)) {
|
||||||
my $cf_value = get_tag_value ($custom_field, 'value', '');
|
my $cf_value = safe_input(get_tag_value ($custom_field, 'value', ''));
|
||||||
|
|
||||||
my $field_agent;
|
my $field_agent;
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ sub process_xml_data ($$$$$) {
|
|||||||
my $custom_field_data = get_db_single_row($dbh, 'SELECT * FROM tagent_custom_data WHERE id_field = ? AND id_agent = ?',
|
my $custom_field_data = get_db_single_row($dbh, 'SELECT * FROM tagent_custom_data WHERE id_field = ? AND id_agent = ?',
|
||||||
$custom_field_info->{"id_field"}, $agent->{"id_agente"});
|
$custom_field_info->{"id_field"}, $agent->{"id_agente"});
|
||||||
|
|
||||||
my $cf_value = get_tag_value ($custom_field, 'value', '');
|
my $cf_value = safe_input(get_tag_value ($custom_field, 'value', ''));
|
||||||
|
|
||||||
#If not defined we must create if defined just updated
|
#If not defined we must create if defined just updated
|
||||||
if(!defined($custom_field_data)) {
|
if(!defined($custom_field_data)) {
|
||||||
@ -497,7 +497,7 @@ sub process_xml_data ($$$$$) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
db_update ($dbh, "UPDATE tagent_custom_data SET description = ? WHERE id_field = ? AND id_agent = ?",
|
db_update ($dbh, "UPDATE tagent_custom_data SET description = ? WHERE id_field = ? AND id_agent = ?",
|
||||||
$cf_value ,$custom_field_info->{"id_field"}, $agent->{'id_agente'});
|
$cf_value, $custom_field_info->{"id_field"}, $agent->{'id_agente'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user