From c296b716de254e6d1c1645fe00eaf33169d263b0 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Feb 2022 12:28:18 +0100 Subject: [PATCH] IcingaServiceForm: some cleanup --- application/forms/IcingaServiceForm.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/application/forms/IcingaServiceForm.php b/application/forms/IcingaServiceForm.php index 531c8b1b..5fe5f45e 100644 --- a/application/forms/IcingaServiceForm.php +++ b/application/forms/IcingaServiceForm.php @@ -333,7 +333,7 @@ class IcingaServiceForm extends DirectorObjectForm protected function setupServiceElements() { if ($this->object) { - $objectType = $this->object->object_type; + $objectType = $this->object->get('object_type'); } elseif ($this->preferredObjectType) { $objectType = $this->preferredObjectType; } else { @@ -422,10 +422,6 @@ class IcingaServiceForm extends DirectorObjectForm $this->addHtmlHint($hint, ['name' => 'inheritance_hint']); } - /** - * @throws IcingaException - * @throws ProgrammingError - */ protected function setupOnHostForSet() { $msg = $this->translate( @@ -723,10 +719,6 @@ class IcingaServiceForm extends DirectorObjectForm return $db->fetchPairs($select); } - /** - * @throws IcingaException - * @throws ProgrammingError - */ protected function succeedForOverrides() { $vars = array(); @@ -759,10 +751,6 @@ class IcingaServiceForm extends DirectorObjectForm $this->redirectOnSuccess($msg); } - /** - * @throws IcingaException - * @throws ProgrammingError - */ public function onSuccess() { if ($this->providesOverrides()) {