Merge branch 'ent-9246-13884-habilitar-_groupcontact_-en-las-respuestas-de-eventos' into 'develop'

add new macro event response group_contact pandora_enterprise#9246

See merge request artica/pandorafms!5240
This commit is contained in:
Rafael Ameijeiras 2022-12-12 22:53:21 +00:00
commit d3a079765d
1 changed files with 9 additions and 0 deletions

View File

@ -3713,6 +3713,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_',