From 1fca8a3014bf15fca094bcab93785384f36880dd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 1 Jun 2015 17:35:27 +0200 Subject: [PATCH] IcingaEndpointForm: require zone for endpoints --- application/forms/IcingaEndpointForm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/forms/IcingaEndpointForm.php b/application/forms/IcingaEndpointForm.php index cfa2d650..15dcbbc6 100644 --- a/application/forms/IcingaEndpointForm.php +++ b/application/forms/IcingaEndpointForm.php @@ -49,8 +49,9 @@ class IcingaEndpointForm extends DirectorObjectForm )); $this->addElement('select', 'zone_id', array( - 'label' => $this->translate('Cluster Zone'), - 'description' => $this->translate('Check this host in this specific Icinga cluster zone') + 'label' => $this->translate('Cluster Zone'), + 'description' => $this->translate('Check this host in this specific Icinga cluster zone'), + 'required' => true )); $this->addElement('submit', $this->translate('Store'));