]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Fix clearing restore path field after selecting backup in restore wizard
authorMarcin Haba <marcin.haba@bacula.pl>
Mon, 13 May 2019 16:16:58 +0000 (18:16 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 25 May 2019 13:02:19 +0000 (15:02 +0200)
gui/baculum/protected/Web/Pages/RestoreWizard.php

index 941d2a8b9b71195aad6fd33f39050229016b7ae4..489837d731f3d3bdd3ae3bb04e84a173f6289744 100644 (file)
@@ -164,6 +164,9 @@ class RestoreWizard extends BaculumWebPage
                        if ($this->Request->contains('backup_to_restore')) {
                                $_SESSION['restore_single_jobid'] = $this->Request['backup_to_restore'];
                        }
+                       if (isset($_SESSION['restore_path'])) {
+                               $_SESSION['restore_path'] = array();
+                       }
                        $this->setFileVersions();
                        $this->loadSelectedFiles();
                        $this->loadFileVersions();