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,8 +4039,14 @@ function events_get_response_target(
|
||||||
if (empty($event['custom_data']) === false) {
|
if (empty($event['custom_data']) === false) {
|
||||||
$custom_data = json_decode($event['custom_data']);
|
$custom_data = json_decode($event['custom_data']);
|
||||||
foreach ($custom_data as $key => $value) {
|
foreach ($custom_data as $key => $value) {
|
||||||
|
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);
|
$target = str_replace('_customdata_'.$key.'_', $value, $target);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (strpos($target, '_customdata_json_') !== false) {
|
if (strpos($target, '_customdata_json_') !== false) {
|
||||||
$target = str_replace('_customdata_json_', json_encode($custom_data), $target);
|
$target = str_replace('_customdata_json_', json_encode($custom_data), $target);
|
||||||
|
|
Loading…
Reference in New Issue