From: Marcin Haba Date: Fri, 21 Apr 2023 09:28:31 +0000 (+0200) Subject: baculum: Tweak using job identifiers in bvfs restore endpoint X-Git-Tag: Release-13.0.3~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cc5c6d9f0cb5ce4cb8dfa8b9ac1760a78035bb9;p=thirdparty%2Fbacula.git baculum: Tweak using job identifiers in bvfs restore endpoint --- diff --git a/gui/baculum/protected/API/Pages/API/BVFSRestore.php b/gui/baculum/protected/API/Pages/API/BVFSRestore.php index b40275a46..74629d836 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSRestore.php +++ b/gui/baculum/protected/API/Pages/API/BVFSRestore.php @@ -78,7 +78,10 @@ class BVFSRestore extends BaculumAPIServer { return; } - $cmd = array('.bvfs_restore', 'jobid="' . $jobids . '"', 'path="' . $path . '"'); + $cmd = array('.bvfs_restore', 'path="' . $path . '"'); + if (is_string($jobids)) { + array_push($cmd, 'jobid="' . $jobids . '"'); + } if (is_string($fileids)) { array_push($cmd, 'fileid="' . $fileids . '"'); }