parent
89e8bec380
commit
788fb452cd
|
@ -47,15 +47,13 @@ class RestoreBasketForm extends QuickForm
|
||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
$allowedDbs = $this->listAllowedDbResourceNames();
|
$allowedDbs = $this->listAllowedDbResourceNames();
|
||||||
if (count($allowedDbs) > 1) {
|
$this->addElement('select', 'target_db', [
|
||||||
$this->addElement('select', 'target_db', [
|
'label' => $this->translate('Target DB'),
|
||||||
'label' => $this->translate('Target DB'),
|
'description' => $this->translate('Restore to this target Director DB'),
|
||||||
'description' => $this->translate('Restore to this target Director DB'),
|
'multiOptions' => $allowedDbs,
|
||||||
'multiOptions' => $allowedDbs,
|
'value' => $this->getRequest()->getParam('target_db', $this->getFirstDbResourceName()),
|
||||||
'value' => $this->getRequest()->getParam('target_db', $this->getFirstDbResourceName()),
|
'class' => 'autosubmit',
|
||||||
'class' => 'autosubmit',
|
]);
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->setSubmitLabel($this->translate('Restore'));
|
$this->setSubmitLabel($this->translate('Restore'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,16 @@
|
||||||
Please make sure to always read our [Upgrading](05-Upgrading.md) documentation
|
Please make sure to always read our [Upgrading](05-Upgrading.md) documentation
|
||||||
before switching to a new version.
|
before switching to a new version.
|
||||||
|
|
||||||
|
1.6.1 (unreleased)
|
||||||
|
------------------
|
||||||
|
### Fixed issues
|
||||||
|
* You can find issues and feature requests related to this release on our
|
||||||
|
[roadmap](https://github.com/Icinga/icingaweb2-module-director/milestone/19?closed=1)
|
||||||
|
|
||||||
|
### User Interface
|
||||||
|
* FIX: restoring a basket fails when there is only one configured DB (#1716)
|
||||||
|
|
||||||
|
|
||||||
1.6.0
|
1.6.0
|
||||||
-----
|
-----
|
||||||
### Fixed issues
|
### Fixed issues
|
||||||
|
|
Loading…
Reference in New Issue