fix module types in module creation from hash

This commit is contained in:
alejandro-campos 2020-08-26 13:59:33 +02:00
parent 97280db5df
commit 8791dce76a
1 changed files with 1 additions and 5 deletions

View File

@ -3198,11 +3198,7 @@ sub pandora_create_module_from_hash ($$$) {
delete $parameters->{'scan_filters'};
delete $parameters->{'query_key_field'};
delete $parameters->{'name_oid'};
if (defined $parameters->{'module_type'}) {
$parameters->{'id_tipo_modulo'} = $parameters->{'module_type'};
delete $parameters->{'module_type'};
}
delete $parameters->{'module_type'};
if (defined $parameters->{'id_os'}) {
delete $parameters->{'id_os'};