ServiceController: do not pass object type...

...when looking up uuid for legacy key

refs #2487
refs #2554
This commit is contained in:
Thomas Gelf 2022-06-24 14:33:38 +02:00
parent aacfd88df5
commit 4c502bb010
1 changed files with 2 additions and 1 deletions

View File

@ -250,7 +250,8 @@ class ServiceController extends ObjectController
}
$key = $this->getLegacyKey();
$uuid = UuidLookup::findServiceUuid($this->db(), $this->getBranch(), 'object', $key, $this->host, $this->set);
// Hint: not passing 'object' as type, we still have name-based links in previews and similar
$uuid = UuidLookup::findServiceUuid($this->db(), $this->getBranch(), null, $key, $this->host, $this->set);
$this->params->set('uuid', $uuid->toString());
parent::loadObject();
}