[icinga-checkins] icinga.org: icingaweb2-module-director/master: IcingaTimePeriodRanges: fetch period id on store

git at icinga.org git at icinga.org
Thu Feb 25 19:22:56 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Thu Feb 25 19:22:19 2016 +0100

IcingaTimePeriodRanges: fetch period id on store

---

 library/Director/Objects/IcingaTimePeriodRanges.php |    1 +
 1 file changed, 1 insertion(+)

diff --git a/library/Director/Objects/IcingaTimePeriodRanges.php b/library/Director/Objects/IcingaTimePeriodRanges.php
index 6e5ee51..11d582c 100644
--- a/library/Director/Objects/IcingaTimePeriodRanges.php
+++ b/library/Director/Objects/IcingaTimePeriodRanges.php
@@ -182,6 +182,7 @@ class IcingaTimePeriodRanges implements Iterator, Countable, IcingaConfigRendere
     public function store()
     {
         foreach ($this->ranges as $range) {
+            $range->timeperiod_id = $this->object->id;
             $range->store($this->object->getConnection());
         }
 



More information about the icinga-checkins mailing list