Skip to content

Commit

Permalink
webui: refactor restore form element "restore client" construction
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Mar 24, 2020
1 parent 4600b70 commit 494608f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webui/module/Restore/src/Restore/Form/RestoreForm.php
Expand Up @@ -123,7 +123,7 @@ public function __construct($restore_params=null, $clients=null, $filesets=null,
}

// Restore client
if(isset($restore_params['restoreclient'])) {
if(isset($this->restore_params['restoreclient'])) {
$this->add(array(
'name' => 'restoreclient',
'type' => 'select',
Expand All @@ -136,11 +136,11 @@ public function __construct($restore_params=null, $clients=null, $filesets=null,
'class' => 'form-control selectpicker show-tick',
'data-live-search' => 'true',
'id' => 'restoreclient',
'value' => $restore_params['restoreclient']
'value' => $this->restore_params['restoreclient']
)
));
}
elseif(!isset($restore_params['restoreclient']) && isset($restore_params['client']) ) {
elseif(!isset($this->restore_params['restoreclient']) && isset($this->restore_params['client']) ) {
$this->add(array(
'name' => 'restoreclient',
'type' => 'select',
Expand All @@ -153,7 +153,7 @@ public function __construct($restore_params=null, $clients=null, $filesets=null,
'class' => 'form-control selectpicker show-tick',
'data-live-search' => 'true',
'id' => 'restoreclient',
'value' => $restore_params['client']
'value' => $this->restore_params['client']
)
));
}
Expand Down

0 comments on commit 494608f

Please sign in to comment.