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:
commit
ab7cad0b24
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue