summaryrefslogtreecommitdiff
path: root/archlinuxaba/bareos/restore-form.patch
blob: 986047463b5bbab7627f2a309e78ce748c2d0697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- bareos/webui/module/Restore/src/Restore/Form/RestoreForm.php	2020-02-21 23:01:23.000000000 +0200
+++ bareos/webui/module/Restore/src/Restore/Form/RestoreForm.php	2020-04-09 23:28:34.194634728 +0300
@@ -244,7 +244,8 @@
          ));
       }
       else {
-         if(!empty($this->restore_params['client']) && count($this->getRestoreJobList()) == 1) {
+         // if(!empty($this->restore_params['client']) && count($this->getRestoreJobList()) == 1) {
+         if(!empty($this->restore_params['client']) && count($this->getRestoreJobList()) > 0) {
             $this->add(array(
                'name' => 'restorejob',
                'type' => 'select',