Merge branch 'ent-6786-error-componentes-remotos-dynamic' into 'develop'

Added control for avoid null values in dynamic components

Closes pandora_enterprise#6786

See merge request artica/pandorafms!3670
This commit is contained in:
Daniel Rodriguez 2021-01-25 09:27:23 +01:00
commit 713abb63e6
1 changed files with 4 additions and 1 deletions

View File

@ -2408,6 +2408,9 @@ class AgentWizard extends HTML
}
}
// If value comes empty, must return a "Empty" value for view it in console.
$value = (empty($value) === true) ? '<i>'.__('Empty').'</i>' : $value;
return $value;
}
@ -3329,7 +3332,7 @@ class AgentWizard extends HTML
} else {
preg_match('/\.\d+$/', $key, $index);
$tmp = explode(': ', $oid_unit);
$output[$index[0]] = $tmp[1];
$output[$index[0]] = ($tmp[1] ?? '');
}
}
}