From: Marcin Haba Date: Sun, 5 Aug 2018 12:11:59 +0000 (+0200) Subject: baculum: Fix restoring backup from deleted clients X-Git-Tag: Release-9.2.1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e555ba4084009594e50406622a32c09bd484fd8d;p=thirdparty%2Fbacula.git baculum: Fix restoring backup from deleted clients --- diff --git a/gui/baculum/protected/Web/Pages/RestoreWizard.php b/gui/baculum/protected/Web/Pages/RestoreWizard.php index b92b480833..e01ed8c860 100644 --- a/gui/baculum/protected/Web/Pages/RestoreWizard.php +++ b/gui/baculum/protected/Web/Pages/RestoreWizard.php @@ -117,12 +117,15 @@ class RestoreWizard extends BaculumWebPage if (is_object($job)) { $this->loadRestoreClients(); $client = $this->getBackupClient($job->clientid); - $this->BackupClientName->SelectedValue = $client; - $this->RestoreClient->SelectedValue = $client; - $this->loadBackupsForClient(); - $step_index = new stdClass; - $step_index->CurrentStepIndex = 3; - $this->wizardNext(null, $step_index); + // client is null for restore backup from deleted clients in catalog + if (!is_null($client)) { + $this->BackupClientName->SelectedValue = $client; + $this->RestoreClient->SelectedValue = $client; + $this->loadBackupsForClient(); + $step_index = new stdClass; + $step_index->CurrentStepIndex = 3; + $this->wizardNext(null, $step_index); + } } }