From 8684824ddf4274600cfd71e3f63901063d8353e5 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 25 Feb 2016 19:22:19 +0100 Subject: [PATCH] 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 6e5ee51a..11d582c1 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()); }