]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl update label_barcode
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 30 Sep 2006 13:27:52 +0000 (13:27 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 30 Sep 2006 13:27:52 +0000 (13:27 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3523 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bweb.pm

index 7716363ed4dc94d3093eb289cd46f48ff768f9d8..6466b1353677fd8ca1c8a6c728979edff9e8cc72 100644 (file)
@@ -2843,13 +2843,14 @@ sub update_slots
     my ($self) = @_;
 
     my $ach = CGI::param('ach') ;
-    unless ($ach =~ /^([\w\d\.-]+)$/) {
+    $ach = $self->ach_get($ach);
+    unless ($ach) {
        return $self->error("Bad autochanger name");
     }
 
     print "<pre>";
     my $b = new Bconsole(pref => $self->{info},timeout => 60,log_stdout => 1);
-    $b->update_slots($ach);
+    $b->update_slots($ach->{name});
     print "</pre>\n" 
 }