mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ServiceController: enableStaticObjectLoader earlier
This commit is contained in:
parent
f301be425c
commit
4e1cc13320
@ -41,6 +41,9 @@ class ServiceController extends ObjectController
|
||||
|
||||
public function init()
|
||||
{
|
||||
// This happens in parent::init() too, but is required to take place before the next two lines
|
||||
$this->enableStaticObjectLoader($this->getTableName());
|
||||
|
||||
// Hint: having Host and Set loaded first is important for UUID lookups with legacy URLs
|
||||
$this->host = $this->getOptionalRelatedObjectFromParams('host', 'host');
|
||||
$this->set = $this->getOptionalRelatedObjectFromParams('service_set', 'set');
|
||||
|
Loading…
x
Reference in New Issue
Block a user