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:
commit
713abb63e6
|
@ -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] ?? '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue