Skip to content

Commit

Permalink
webui: fix restore job form element population
Browse files Browse the repository at this point in the history
This commit fixes the issue that the form field "restore job" is not
populated correctly after client selection and stays disabled if the
configured restore job number is greater than 1 due to a wrong
comparison-operator.

Fixes #1206: form field restore job is not populated after client selection
  • Loading branch information
fbergkemper committed Feb 28, 2020
1 parent 63ba1f5 commit e7dbde2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/module/Restore/src/Restore/Form/RestoreForm.php
Expand Up @@ -244,7 +244,7 @@ public function __construct($restore_params=null, $clients=null, $filesets=null,
));
}
else {
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',
Expand Down

0 comments on commit e7dbde2

Please sign in to comment.