From: David Weber Date: Wed, 16 Nov 2011 13:36:58 +0000 (+0100) Subject: bweb: Fix bresto full directory restore X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c24cb4f270febdcf70e4f03776063613465ef37a;p=bacula%2Fbacula bweb: Fix bresto full directory restore We need the jobid if we want to restore a full directory --- diff --git a/gui/bweb/cgi/bresto.pl b/gui/bweb/cgi/bresto.pl index 81d5b8d2d7..f982692c80 100755 --- a/gui/bweb/cgi/bresto.pl +++ b/gui/bweb/cgi/bresto.pl @@ -613,11 +613,13 @@ sub fill_table_for_restore map { split(/,/) } CGI::param('dirid')) ; my $findex = join(',', grep { /^\d+$/ } map { split(/,|\//) } CGI::param('findex')) ; + my $jobid = join(',', grep { /^\d+$/ } + map { split(/,/) } CGI::param('jobid')) ; my $inclause = join(',', @jobid); my $b = $bvfs->get_bconsole(); my $ret = $b->send_one_cmd(".bvfs_restore path=b2$$ fileid=$fileid " . - "dirid=$dirid hardlink=$findex jobid=1" + "dirid=$dirid hardlink=$findex jobid=$jobid" . $bvfs->{bvfs_user}); if (grep (/OK/, @$ret)) { return "b2$$";