Fixed bug in modules deletion: parent id set to 0 in case parent has been deleted

This commit is contained in:
alejandro-campos 2018-11-12 18:39:14 +01:00
parent 9d896de41a
commit e45dc3a981

View File

@ -297,7 +297,9 @@ sub pandora_purgedb ($$) {
my $buffer = 1000;
my $id_module = $module->{'id_agente_modulo'};
db_do ($dbh, 'UPDATE tagente_modulo SET parent_module_id=0 WHERE parent_module_id=?', $id_module);
log_message ('', ".");
while(1) {