diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index e676a09b48..a3094b19e0 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1979,6 +1979,13 @@ function events_get_response_target($event_id, $response_id, $server_id, $histor $event_st = events_display_status($event['estado']); $target = str_replace('_event_status_', $event_st["title"], $target); } + // Parse the event custom data + if (!empty($event['custom_data'])){ + $custom_data = json_decode (base64_decode ($event['custom_data'])); + foreach ($custom_data as $key => $value) { + $target = str_replace('_customdata_' . $key . '_', $value, $target); + } + } return $target; }