]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix a mysql DBI bug in group delete action
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 19 Nov 2007 14:11:42 +0000 (14:11 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 19 Nov 2007 14:11:42 +0000 (14:11 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5961 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bweb.pm

index 9589b30ca9b72bda7f35d3dcf0ca7903aaae9e8f..0a5fbd001b9562bdecb2a984e199aaf9d7081e2d 100644 (file)
@@ -2639,26 +2639,25 @@ sub groups_del
 
     $self->{dbh}->begin_work();
 
-    my $query = "
+    $self->dbh_do("
 DELETE FROM client_group_member 
       WHERE client_group_id IN 
            (SELECT client_group_id 
               FROM client_group 
-             WHERE client_group_name = $arg->{qclient_group});
+             WHERE client_group_name = $arg->{qclient_group})");
 
+    $self->dbh_do("
 DELETE FROM bweb_client_group_acl
       WHERE client_group_id IN
            (SELECT client_group_id 
               FROM client_group 
-             WHERE client_group_name = $arg->{qclient_group});
+             WHERE client_group_name = $arg->{qclient_group})");
 
+    $self->dbh_do("
 DELETE FROM client_group
-      WHERE client_group_name = $arg->{qclient_group};
-";
-    $self->dbh_do($query);
+      WHERE client_group_name = $arg->{qclient_group}");
 
     $self->{dbh}->commit();
-    
     $self->display_groups();
 }