]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Pages/RestoreWizard.php
baculum: Fix restore when a lot of jobids given
[bacula/bacula] / gui / baculum / protected / Pages / RestoreWizard.php
index 761a2257c527505bb7e4239f83056641faca75c1..67e7ddcd445785dda12cba588b1c2ed82d7568f5 100644 (file)
@@ -295,10 +295,10 @@ class RestoreWizard extends BaculumPage
        
                // generating Bvfs may takes a moment
                $this->generateBvfsCacheByJobids($jobids);
-               $bvfsDirsList = $this->getModule('api')->get(array('bvfs', 'lsdirs', $jobids, '?path=' .  urlencode($this->getBrowserPath(true)) . ''));
+               $bvfsDirsList = $this->getModule('api')->set(array('bvfs', 'lsdirs'), array('jobids' => $jobids, 'path' => $this->getBrowserPath(true)));
                $bvfsDirs = is_object($bvfsDirsList) ? $bvfsDirsList->output : array();
                $dirs = $this->getModule('misc')->parseBvfsList($bvfsDirs);
-               $bvfsFilesList = $this->getModule('api')->get(array('bvfs', 'lsfiles', $jobids, '?path=' .  urlencode($this->getBrowserPath(true)) . ''));
+               $bvfsFilesList = $this->getModule('api')->set(array('bvfs', 'lsfiles'), array('jobids' => $jobids, 'path' => $this->getBrowserPath(true)));
                $bvfsFiles = is_object($bvfsFilesList) ? $bvfsFilesList->output : array();
                $files = $this->getModule('misc')->parseBvfsList($bvfsFiles);
                $elements = array_merge($dirs, $files);
@@ -332,7 +332,7 @@ class RestoreWizard extends BaculumPage
        }
 
        private function generateBvfsCacheByJobids($jobids) {
-               $this->getModule('api')->set(array('bvfs', 'update', $jobids), array());
+               $this->getModule('api')->set(array('bvfs', 'update'), array('jobids' => $jobids));
        }
 
        private function setFileVersions($versions) {