mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: fix adding single Host Templates
...to a Configuration Basket
This commit is contained in:
parent
f43c74dc8e
commit
dce9770dcd
@ -313,7 +313,7 @@ abstract class ObjectController extends ActionController
|
|||||||
if ($object instanceof IcingaServiceSet) {
|
if ($object instanceof IcingaServiceSet) {
|
||||||
$type = 'ServiceSet';
|
$type = 'ServiceSet';
|
||||||
} elseif ($object->isTemplate()) {
|
} elseif ($object->isTemplate()) {
|
||||||
$type = $this->getType() . 'Template';
|
$type = ucfirst($this->getType()) . 'Template';
|
||||||
} elseif ($object->isGroup()) {
|
} elseif ($object->isGroup()) {
|
||||||
$type = ucfirst($this->getType());
|
$type = ucfirst($this->getType());
|
||||||
} else {
|
} else {
|
||||||
@ -526,7 +526,6 @@ abstract class ObjectController extends ActionController
|
|||||||
/**
|
/**
|
||||||
* @return IcingaObject
|
* @return IcingaObject
|
||||||
* @throws NotFoundError
|
* @throws NotFoundError
|
||||||
* @throws \Zend_Controller_Response_Exception
|
|
||||||
*/
|
*/
|
||||||
protected function requireObject()
|
protected function requireObject()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user