From: Sven Schöling Date: Wed, 12 Oct 2011 12:40:40 +0000 (+0200) Subject: CVars löschen muss auch die validity löschen X-Git-Tag: release-2.7.0beta1~235 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9a941d5ec0d9db936c85b16bedd39f1d3aae835f;p=kivitendo-erp.git CVars löschen muss auch die validity löschen --- diff --git a/SL/CVar.pm b/SL/CVar.pm index 8b3cd8e27..e91a2366d 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -175,8 +175,9 @@ sub delete_config { my $dbh = $params{dbh} || $form->get_standard_dbh($myconfig); - do_query($form, $dbh, qq|DELETE FROM custom_variables WHERE config_id = ?|, conv_i($params{id})); - do_query($form, $dbh, qq|DELETE FROM custom_variable_configs WHERE id = ?|, conv_i($params{id})); + do_query($form, $dbh, qq|DELETE FROM custom_variables WHERE config_id = ?|, conv_i($params{id})); + do_query($form, $dbh, qq|DELETE FROM custom_variables_validity WHERE config_id = ?|, conv_i($params{id})); + do_query($form, $dbh, qq|DELETE FROM custom_variable_configs WHERE id = ?|, conv_i($params{id})); $dbh->commit();