From 9f378eeccf2c0a47101e04afe35706bc5aaee9e6 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Mon, 13 May 2019 18:16:58 +0200 Subject: [PATCH] baculum: Fix clearing restore path field after selecting backup in restore wizard --- gui/baculum/protected/Web/Pages/RestoreWizard.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/baculum/protected/Web/Pages/RestoreWizard.php b/gui/baculum/protected/Web/Pages/RestoreWizard.php index 941d2a8b9..489837d73 100644 --- a/gui/baculum/protected/Web/Pages/RestoreWizard.php +++ b/gui/baculum/protected/Web/Pages/RestoreWizard.php @@ -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(); -- 2.47.3