IcingaTimePeriodRangeForm: simplify usage

This commit is contained in:
Thomas Gelf 2017-08-16 15:24:13 +02:00
parent cff14c8f80
commit 7a4d04b92f

View File

@ -36,6 +36,7 @@ class IcingaTimePeriodRangeForm extends DirectorObjectForm
public function setTimePeriod(IcingaTimePeriod $period)
{
$this->period = $period;
$this->setDb($period->getConnection());
return $this;
}