#13783 fix macros
This commit is contained in:
parent
61040b7991
commit
23282e0ca3
|
@ -3887,6 +3887,11 @@ function events_get_response_target(
|
|||
}
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true && (int) $server_id > 0) {
|
||||
$node = new Node($server_id);
|
||||
$node->connect();
|
||||
}
|
||||
|
||||
// Replace macros.
|
||||
if (strpos($target, '_agent_alias_') !== false) {
|
||||
$agente_table_name = 'tagente';
|
||||
|
@ -4248,6 +4253,10 @@ function events_get_response_target(
|
|||
);
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true && $server_id > 0) {
|
||||
$node->disconnect();
|
||||
}
|
||||
|
||||
return $target;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue