Merge branch 'ent-8694-sorpresa-en-fenix-con-autoaplicacion-de-politicas-de-grupo-v760' into 'develop'

Fix groups linked to non-existent policies

See merge request artica/pandorafms!4769
This commit is contained in:
Daniel Rodriguez 2022-03-25 10:45:00 +00:00
commit c6b1fd858a
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ sub pandora_purgedb ($$) {
log_message ('PURGE', 'trap_purge is set to 0. Old SNMP traps will not be deleted.'); log_message ('PURGE', 'trap_purge is set to 0. Old SNMP traps will not be deleted.');
} }
# Cleanup policy groups pointing to non-existing policies.
enterprise_hook('pandora_policy_group_cleanup', [$dbh]);
# Delete policy queue data # Delete policy queue data
enterprise_hook("pandora_purge_policy_queue", [$dbh, $conf]); enterprise_hook("pandora_purge_policy_queue", [$dbh, $conf]);