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()); }