From 2ebc36a5c9f9d3c6b540cd2e281d94b2eb48fd1c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 8 Feb 2007 21:59:47 +0000 Subject: [PATCH] ebl fix cache create bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4152 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/brestore/brestore.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- 2.39.5