mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
UuidLookup: fix lookup for cloned branches
This commit is contained in:
parent
3c7c7bc61a
commit
1df495b41e
@ -94,6 +94,7 @@ class UuidLookup
|
||||
$uuid = self::fetchOptionalUuid($connection, $query);
|
||||
if ($uuid === null && $branch->isBranch()) {
|
||||
$query = self::addKeyToQuery($connection, $db->select()->from("branched_$table", 'uuid'), $key);
|
||||
$query->where('branch_uuid = ?', $connection->quoteBinary($branch->getUuid()->getBytes()));
|
||||
$uuid = self::fetchOptionalUuid($connection, $query);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user