add new macro event response group_contact pandora_enterprise#9246

This commit is contained in:
Daniel Barbero 2022-11-02 16:59:04 +01:00
parent 6a36fd305b
commit 0ff07d7224
1 changed files with 9 additions and 0 deletions

View File

@ -3721,6 +3721,15 @@ function events_get_response_target(
);
}
if (strpos($target, '_group_contact_') !== false) {
$info_groups = groups_get_group_by_id($event['id_grupo']);
$target = str_replace(
'_group_contact_',
(isset($info_groups['contact']) === true) ? $info_groups['contact'] : 'N/A',
$target
);
}
if (strpos($target, '_event_utimestamp_') !== false) {
$target = str_replace(
'_event_utimestamp_',