ServiceController: enableStaticObjectLoader earlier

This commit is contained in:
Thomas Gelf 2022-09-20 12:16:20 +02:00
parent f301be425c
commit 4e1cc13320
1 changed files with 3 additions and 0 deletions

View File

@ -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');