mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch 'ent-6469-entities-componentes-remotos' into 'develop'
Ent 6469 entities componentes remotos Closes pandora_enterprise#6469 See merge request artica/pandorafms!3569
This commit is contained in:
commit
7a776cd270
@ -258,7 +258,7 @@ if ($id_modulo === COMPONENT_TYPE_WIZARD) {
|
||||
if ($execution_type === EXECUTION_TYPE_PLUGIN || $module_protocol === 'wmi') {
|
||||
// Search all parameters received with extra_fields.
|
||||
foreach ($_REQUEST as $parameter => $thisValue) {
|
||||
// Extra fields (OIDs Macros or WMI Extra fields)
|
||||
// Extra fields (OIDs Macros or WMI Extra fields).
|
||||
if (preg_match('/extra_field_'.$module_protocol.'_/', $parameter) !== 0) {
|
||||
$tmpParameter = explode('_', $parameter);
|
||||
$extra_fields['extra_field_'.$tmpParameter[3]] = get_parameter($parameter);
|
||||
@ -330,7 +330,7 @@ if ($create_component) {
|
||||
|
||||
if ($name && !$name_check) {
|
||||
$id = network_components_create_network_component(
|
||||
strip_tags(io_safe_input($name), '<br>'),
|
||||
$name,
|
||||
$type,
|
||||
$id_group,
|
||||
[
|
||||
@ -431,7 +431,7 @@ if ($update_component) {
|
||||
$id,
|
||||
[
|
||||
'type' => $type,
|
||||
'name' => strip_tags(io_safe_input($name, '<br>')),
|
||||
'name' => $name,
|
||||
'id_group' => $id_group,
|
||||
'description' => $description,
|
||||
'module_interval' => $module_interval,
|
||||
|
Loading…
x
Reference in New Issue
Block a user