Merge branch 'ent-6831-Ticket-Guardia-10822-SNMP-Wizard-Interface' into 'develop'

Ent 6831 ticket guardia 10822 snmp wizard interface

See merge request artica/pandorafms!3719
This commit is contained in:
Daniel Rodriguez 2020-12-14 17:53:28 +01:00
commit 54712de36f
1 changed files with 1 additions and 1 deletions

View File

@ -1452,7 +1452,7 @@ class AgentWizard extends HTML
foreach (array_keys($data) as $k) {
foreach ($modulesActivated as $key => $value) {
$valueStr = preg_replace('/\//', '\/', $value);
if (empty(preg_match('/'.$valueStr.'$/', $k)) === false) {
if (empty(preg_match('/-'.$valueStr.'$/', $k)) === false) {
if (empty(preg_match('/module-name-set/', $k)) === false) {
$result[$value]['name'] = $data[$k];
} else if (empty(preg_match('/module-description-set/', $k)) === false) {