From: Marcin Haba Date: Thu, 29 Apr 2021 19:10:25 +0000 (+0200) Subject: baculum: Restore wizard improvements X-Git-Tag: Release-11.0.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c688de4cc6fbcdef9d0f0f85bda8eed9125403d7;p=thirdparty%2Fbacula.git baculum: Restore wizard improvements Changes: - Add search field - Add offset and limit fields - Count number of files and directories - Backup job information - Change in sorting - uppercase letters higher than lowercase letters --- diff --git a/gui/baculum/protected/API/Class/BVFS.php b/gui/baculum/protected/API/Class/BVFS.php index a3fb50564..f991b8acb 100644 --- a/gui/baculum/protected/API/Class/BVFS.php +++ b/gui/baculum/protected/API/Class/BVFS.php @@ -105,6 +105,6 @@ function sortFilesListByName($a, $b) { } else if ($firstRight == '.' && $firstLeft != '.') { return 1; } - return strcasecmp($a['name'], $b['name']); + return strcmp($a['name'], $b['name']); } ?> diff --git a/gui/baculum/protected/Web/Lang/en/messages.mo b/gui/baculum/protected/Web/Lang/en/messages.mo index 44fddc761..6035a7cb2 100644 Binary files a/gui/baculum/protected/Web/Lang/en/messages.mo and b/gui/baculum/protected/Web/Lang/en/messages.mo differ diff --git a/gui/baculum/protected/Web/Lang/en/messages.po b/gui/baculum/protected/Web/Lang/en/messages.po index 58ab65d90..7b326e7f0 100644 --- a/gui/baculum/protected/Web/Lang/en/messages.po +++ b/gui/baculum/protected/Web/Lang/en/messages.po @@ -3334,3 +3334,24 @@ msgstr "SD port" msgid "Configure storage daemon" msgstr "Configure storage daemon" + +msgid "# Directories:" +msgstr "# Directories:" + +msgid "# Files:" +msgstr "# Files:" + +msgid "Search..." +msgstr "Search..." + +msgid "case sensitive" +msgstr "case sensitive" + +msgid "Backup client" +msgstr "Backup client" + +msgid "Job type" +msgstr "Job type" + +msgid "Restore time point" +msgstr "Restore time point" diff --git a/gui/baculum/protected/Web/Pages/RestoreWizard.page b/gui/baculum/protected/Web/Pages/RestoreWizard.page index 3883d005b..55ded9683 100644 --- a/gui/baculum/protected/Web/Pages/RestoreWizard.page +++ b/gui/baculum/protected/Web/Pages/RestoreWizard.page @@ -213,7 +213,7 @@ oJobsToRestoreList.show_find_job_by_filename_loader(false); - <%=$this->Session->contains('restore_jobid') ? 'oJobsToRestoreList.set_jobid(' . $this->Session['restore_jobid'] . ');' : ''%> + <%=$this->Session->contains('restore_job') ? 'oJobsToRestoreList.set_jobid(' . $this->Session['restore_job']['jobid'] . ');' : ''%>