UuidLookup: allow multi-key objects

Hint: we do not (yet) support templates in branches, but we need to deal
with related lookups
This commit is contained in:
Thomas Gelf 2022-02-06 13:19:17 +01:00
parent a05300dc24
commit 30f0d85158
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class UuidLookup
$query = self::addKeyToQuery($connection, $db->select()->from($table, 'uuid'), $key);
$uuid = self::fetchOptionalUuid($connection, $query);
if ($uuid === null && $branch->isBranch()) {
$query = $db->select()->from("branched_$table", 'uuid')->where('object_name = ?', $key);
$query = self::addKeyToQuery($connection, $db->select()->from("branched_$table", 'uuid'), $key);
$uuid = self::fetchOptionalUuid($connection, $query);
}