Merge branch '2677-no-se-elimina-parent-id-entre-modulos-del-mismo-agente' into 'develop'

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

See merge request artica/pandorafms!1961
This commit is contained in:
vgilc 2018-11-13 08:37:45 +01:00
commit 72691ffe8d
1 changed files with 3 additions and 1 deletions

View File

@ -298,6 +298,8 @@ 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) {