mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-9496-14178-bug-api-validacion-valores-de-entrada' into 'develop'
Fix module type validadion on api set create network module See merge request artica/pandorafms!5224
This commit is contained in:
commit
7ea46174c1
@ -3588,6 +3588,19 @@ function api_set_create_network_module($id, $thrash1, $other, $thrash3)
|
||||
// Column 'module_macros' cannot be null.
|
||||
}
|
||||
|
||||
$type_exist = db_get_value_filter(
|
||||
'id_tipo',
|
||||
'ttipo_modulo',
|
||||
[
|
||||
'id_tipo' => $values['id_tipo_modulo'],
|
||||
]
|
||||
);
|
||||
|
||||
if ((bool) $type_exist === false) {
|
||||
returnError('Module type does not exist');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($agent_by_alias) {
|
||||
$agents_affected = 0;
|
||||
$idModule = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user