From: Eric Bollengier Date: Thu, 8 Feb 2007 21:59:47 +0000 (+0000) Subject: ebl fix cache create bug X-Git-Tag: Release-2.2.0~1069 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ebc36a5c9f9d3c6b540cd2e281d94b2eb48fd1c;p=bacula%2Fbacula ebl fix cache create bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4152 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/brestore/brestore.pl b/gui/brestore/brestore.pl index b88177a9c2..aa946332b8 100755 --- a/gui/brestore/brestore.pl +++ b/gui/brestore/brestore.pl @@ -1285,7 +1285,6 @@ sub on_list_client_changed my $fs = $self->{bvfs}; $fs->set_curjobids(@{$self->{CurrentJobIds}}); - $fs->update_brestore_table(@{$self->{CurrentJobIds}}); $fs->ch_dir($fs->get_root()); # refresh_fileview will be done by list_backup_changed @@ -2366,6 +2365,7 @@ sub set_curjobids { my ($self, @jobids) = @_; $self->{curjobids} = join(',', @jobids); + $self->update_brestore_table(@jobids); } sub ls_files @@ -2727,6 +2727,8 @@ sub update_brestore_table { my ($self, @jobs) = @_; + $self->debug(\@jobs); + foreach my $job (sort {$a <=> $b} @jobs) { my $query = "SELECT 1 FROM brestore_knownjobid WHERE JobId = $job";