mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
a1e589ce6d
commit
071df2a072
@ -7,6 +7,7 @@ use Icinga\Exception\IcingaException;
|
|||||||
use Icinga\Module\Director\Acl;
|
use Icinga\Module\Director\Acl;
|
||||||
use Icinga\Module\Director\Data\Db\DbObjectStore;
|
use Icinga\Module\Director\Data\Db\DbObjectStore;
|
||||||
use Icinga\Module\Director\Db\Branch\Branch;
|
use Icinga\Module\Director\Db\Branch\Branch;
|
||||||
|
use Icinga\Module\Director\Objects\IcingaCommand;
|
||||||
use Icinga\Module\Director\Objects\IcingaHost;
|
use Icinga\Module\Director\Objects\IcingaHost;
|
||||||
use Icinga\Module\Director\Objects\IcingaObject;
|
use Icinga\Module\Director\Objects\IcingaObject;
|
||||||
use Icinga\Module\Director\Objects\IcingaService;
|
use Icinga\Module\Director\Objects\IcingaService;
|
||||||
@ -95,7 +96,9 @@ class IcingaCloneObjectForm extends DirectorForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->object->isTemplate() && $this->object->supportsFields()) {
|
if (($this->object->isTemplate() || $this->object instanceof IcingaCommand)
|
||||||
|
&& $this->object->supportsFields()
|
||||||
|
) {
|
||||||
$this->addBoolean('clone_fields', [
|
$this->addBoolean('clone_fields', [
|
||||||
'label' => $this->translate('Clone Template Fields'),
|
'label' => $this->translate('Clone Template Fields'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
|
@ -9,6 +9,9 @@ v1.11.0 (unreleased)
|
|||||||
|
|
||||||
This version hasn't been released yet
|
This version hasn't been released yet
|
||||||
|
|
||||||
|
### UI
|
||||||
|
* FEATURE: allow to clone commands with fields (#2264)
|
||||||
|
|
||||||
### Fixed issues
|
### Fixed issues
|
||||||
* You can find issues and feature requests related to this release on our
|
* You can find issues and feature requests related to this release on our
|
||||||
[roadmap](https://github.com/Icinga/icingaweb2-module-director/milestone/32?closed=1)
|
[roadmap](https://github.com/Icinga/icingaweb2-module-director/milestone/32?closed=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user