[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaNotificationForm: fix timeperiod loading

git at icinga.org git at icinga.org
Mon May 23 13:01:32 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: d435ca37f7da03c4f55369cb6adfd980f3e8f361
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=d435ca37f7da03c4f55369cb6adfd980f3e8f361

Author: Thomas Gelf <thomas at gelf.net>
Date:   Mon May 23 13:00:32 2016 +0200

IcingaNotificationForm: fix timeperiod loading

fixes #11576

---

 application/forms/IcingaNotificationForm.php     |    2 +-
 library/Director/Web/Form/DirectorObjectForm.php |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/forms/IcingaNotificationForm.php b/application/forms/IcingaNotificationForm.php
index d705873..64cb29b 100644
--- a/application/forms/IcingaNotificationForm.php
+++ b/application/forms/IcingaNotificationForm.php
@@ -149,7 +149,7 @@ class IcingaNotificationForm extends DirectorObjectForm
 
         $this->addElement(
             'select',
-            'period',
+            'period_id',
             array(
                 'label' => $this->translate('Time period'),
                 'description' => $this->translate(
diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php
index 5834a36..3d59de3 100644
--- a/library/Director/Web/Form/DirectorObjectForm.php
+++ b/library/Director/Web/Form/DirectorObjectForm.php
@@ -495,7 +495,7 @@ abstract class DirectorObjectForm extends QuickForm
             'user_groups',
             'command_id', // Notification
             'notification_interval',
-            'period',
+            'period_id',
             'times_begin',
             'times_end',
             'email',



More information about the icinga-checkins mailing list