diff --git a/application/forms/RestoreBasketForm.php b/application/forms/RestoreBasketForm.php index 5c86f13a..90d5b389 100644 --- a/application/forms/RestoreBasketForm.php +++ b/application/forms/RestoreBasketForm.php @@ -47,15 +47,13 @@ class RestoreBasketForm extends QuickForm public function setup() { $allowedDbs = $this->listAllowedDbResourceNames(); - if (count($allowedDbs) > 1) { - $this->addElement('select', 'target_db', [ - 'label' => $this->translate('Target DB'), - 'description' => $this->translate('Restore to this target Director DB'), - 'multiOptions' => $allowedDbs, - 'value' => $this->getRequest()->getParam('target_db', $this->getFirstDbResourceName()), - 'class' => 'autosubmit', - ]); - } + $this->addElement('select', 'target_db', [ + 'label' => $this->translate('Target DB'), + 'description' => $this->translate('Restore to this target Director DB'), + 'multiOptions' => $allowedDbs, + 'value' => $this->getRequest()->getParam('target_db', $this->getFirstDbResourceName()), + 'class' => 'autosubmit', + ]); $this->setSubmitLabel($this->translate('Restore')); } diff --git a/doc/82-Changelog.md b/doc/82-Changelog.md index faebf17f..84473e6e 100644 --- a/doc/82-Changelog.md +++ b/doc/82-Changelog.md @@ -4,6 +4,16 @@ Please make sure to always read our [Upgrading](05-Upgrading.md) documentation 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 ----- ### Fixed issues