fix show comment events ticket pandora_enterprise#12066
This commit is contained in:
parent
1ffebcf49c
commit
c6a04d5d8f
|
@ -52,7 +52,7 @@ function show_event_dialog(event, dialog_page) {
|
|||
.empty()
|
||||
.append(data)
|
||||
.dialog({
|
||||
title: event.evento,
|
||||
title: event.event_title,
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
modal: false,
|
||||
|
|
|
@ -511,8 +511,10 @@ if (is_ajax() === true) {
|
|||
);
|
||||
}
|
||||
|
||||
$tmp->evento = str_replace('"', '', io_safe_output($tmp->evento));
|
||||
$event_text = $tmp->evento;
|
||||
$output_event_name = str_replace('"', '', io_safe_output($tmp->evento));
|
||||
$tmp->event_title = $output_event_name;
|
||||
$tmp->b64 = base64_encode(json_encode($tmp));
|
||||
$tmp->evento = $output_event_name;
|
||||
|
||||
$tmp->evento = ui_print_truncate_text(
|
||||
$tmp->evento,
|
||||
|
@ -623,7 +625,7 @@ if (is_ajax() === true) {
|
|||
|
||||
$total_sec = strtotime($tmp->timestamp);
|
||||
$total_sec += $dif;
|
||||
$last_contact = date($confb64ig['date_format'], $total_sec);
|
||||
$last_contact = date($config['date_format'], $total_sec);
|
||||
$last_contact_value = ui_print_timestamp($last_contact, true);
|
||||
} else {
|
||||
$title = date($config['date_format'], strtotime($tmp->timestamp));
|
||||
|
@ -662,11 +664,6 @@ if (is_ajax() === true) {
|
|||
);
|
||||
}
|
||||
|
||||
$aux_event = $tmp->evento;
|
||||
$tmp->evento = $event_text;
|
||||
$tmp->b64 = base64_encode(json_encode($tmp));
|
||||
$tmp->evento = $aux_event;
|
||||
|
||||
$tmp->user_comment = ui_print_comments(
|
||||
event_get_last_comment(
|
||||
$item,
|
||||
|
|
Loading…
Reference in New Issue