Skip to content

Commit

Permalink
ServiceController: do not pass object type...
Browse files Browse the repository at this point in the history
...when looking up uuid for legacy key

refs #2487
refs #2554
  • Loading branch information
Thomas-Gelf committed Oct 6, 2022
1 parent 9e1fc07 commit 94638fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/ServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ protected function loadObject()
}

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

0 comments on commit 94638fe

Please sign in to comment.