From a5f424d340577e0cea587eab9cc2c7aafd5766d3 Mon Sep 17 00:00:00 2001 From: digimer Date: Mon, 23 Oct 2023 12:58:15 -0400 Subject: [PATCH] Test fix for variable deletion bug. Signed-off-by: digimer --- Anvil/Tools/Database.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Anvil/Tools/Database.pm b/Anvil/Tools/Database.pm index a7a623f8..62625b41 100644 --- a/Anvil/Tools/Database.pm +++ b/Anvil/Tools/Database.pm @@ -19721,7 +19721,7 @@ ORDER BY } if ((not exists $anvil->data->{duplicate_variables}{$variable_section}{$variable_name}{$variable_source_table}{$variable_source_uuid}) && - (not exists $anvil->data->{duplicate_variables}{$variable_section}{$variable_name}{$variable_source_table}{$variable_source_uuid}{variable_uuid})) + (not $anvil->data->{duplicate_variables}{$variable_section}{$variable_name}{$variable_source_table}{$variable_source_uuid}{variable_uuid})) { # Save it. $anvil->data->{duplicate_variables}{$variable_section}{$variable_name}{$variable_source_table}{$variable_source_uuid}{variable_value} = $variable_value; @@ -19758,6 +19758,9 @@ ORDER BY } } + # Delete to hash. + delete $anvil->data->{duplicate_variables}; + return(0); }