Merge branch 'ent-12513-16509-respuesta-en-eventos-no-funciona-con-el-filtro-alert-triggered' into 'develop'

Ent 12513 [#16509]Respuesta en eventos no funciona con el filtro Alert triggered

See merge request artica/pandorafms!6697
This commit is contained in:
Rafael Ameijeiras 2023-11-27 08:10:14 +00:00
commit ab7cad0b24
1 changed files with 7 additions and 1 deletions

View File

@ -4039,7 +4039,13 @@ function events_get_response_target(
if (empty($event['custom_data']) === false) {
$custom_data = json_decode($event['custom_data']);
foreach ($custom_data as $key => $value) {
$target = str_replace('_customdata_'.$key.'_', $value, $target);
if (is_array($value) === true) {
foreach ($value as $k => $v) {
$target = str_replace('_customdata_'.$k.'_', $v, $target);
}
} else {
$target = str_replace('_customdata_'.$key.'_', $value, $target);
}
}
if (strpos($target, '_customdata_json_') !== false) {