ObjectController: fix adding single Host Templates

...to a Configuration Basket
This commit is contained in:
Thomas Gelf 2018-10-30 16:41:49 +01:00
parent f43c74dc8e
commit dce9770dcd

View File

@ -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()
{ {