CVars löschen muss auch die validity löschen
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 12 Oct 2011 12:40:40 +0000 (14:40 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 12 Oct 2011 12:40:40 +0000 (14:40 +0200)
SL/CVar.pm

index 8b3cd8e..e91a236 100644 (file)
@@ -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();