mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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:
parent
a05300dc24
commit
30f0d85158
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user