From 674c68bd2bb6dac2bc4c6f520bd33871c01565b6 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 25 Jun 2019 12:49:17 +0200 Subject: [PATCH] avoided issue latin1 btoa javascript event transfer --- pandora_console/operation/events/events.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index ee44713385..da7123e728 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -294,6 +294,9 @@ if (is_ajax()) { ); $tmp->data = format_numeric($tmp->data, 1); + + $tmp->b64 = base64_encode(json_encode($tmp)); + $carry[] = $tmp; return $carry; } @@ -1599,7 +1602,7 @@ function process_datatables_item(item) { // Add event severity to end of text. evn = ''; + evn += item.b64+'\','+$("#group_rep").val()+');">'; // Grouped events. if(item.event_rep && item.event_rep > 1) { evn += '('+item.event_rep+') '; @@ -1705,7 +1708,7 @@ function process_datatables_item(item) { /* Options */ // Show more. item.options = ' __('Show more')]); ?>';