Merge branch '2076-Mejoras_en_gestion_de_politicas_desde_Metaconsola' into 'develop'

fixed error pandoradb metapolicies

See merge request artica/pandorafms!1630
This commit is contained in:
vgilc 2018-07-24 16:03:12 +02:00
commit bb655488a5
1 changed files with 3 additions and 3 deletions

View File

@ -687,7 +687,7 @@ sub pandora_load_config_pdb ($) {
###############################################################################
sub pandora_checkdb_integrity {
my $dbh = shift;
my ($conf, $dbh) = @_;
log_message ('INTEGRITY', "Cleaning up group stats.");
@ -719,7 +719,7 @@ sub pandora_checkdb_integrity {
db_do ($dbh, 'DELETE FROM tagente_datos_inc WHERE id_agente_modulo NOT IN (SELECT id_agente_modulo FROM tagente_modulo)');
# Check enterprise tables
enterprise_hook ('pandora_checkdb_integrity_enterprise', [$dbh]);
enterprise_hook ('pandora_checkdb_integrity_enterprise', [$conf, $dbh]);
}
###############################################################################
@ -996,7 +996,7 @@ sub pandoradb_main ($$$) {
pandora_checkdb_consistency ($conf, $dbh);
# Maintain Referential integrity and other stuff
pandora_checkdb_integrity ($dbh);
pandora_checkdb_integrity ($conf, $dbh);
# Move old data to the history DB
if (defined ($history_dbh)) {