From d435ca37f7da03c4f55369cb6adfd980f3e8f361 Mon Sep 17 00:00:00 2001
From: Thomas Gelf <thomas@gelf.net>
Date: Mon, 23 May 2016 13:00:32 +0200
Subject: [PATCH] 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 d7058736..64cb29be 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 5834a360..3d59de3c 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',