From: Marcin Haba Date: Mon, 13 May 2019 16:16:58 +0000 (+0200) Subject: baculum: Fix clearing restore path field after selecting backup in restore wizard X-Git-Tag: Release-9.4.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f378eeccf2c0a47101e04afe35706bc5aaee9e6;p=thirdparty%2Fbacula.git baculum: Fix clearing restore path field after selecting backup in restore wizard --- 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();