From e45dc3a9813aaf6c015eed647d5b5b0f8adb9c9b Mon Sep 17 00:00:00 2001 From: alejandro-campos Date: Mon, 12 Nov 2018 18:39:14 +0100 Subject: [PATCH] Fixed bug in modules deletion: parent id set to 0 in case parent has been deleted --- pandora_server/util/pandora_db.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index 0981047598..4dfa70a602 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -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) {