Fixed problems with show comment in events. Tiquet: #2820

(cherry picked from commit a72f6e051b)
This commit is contained in:
m-lopez-f 2015-10-01 09:26:49 +02:00
parent 439cb08479
commit 923e91ed2d
1 changed files with 1 additions and 2 deletions

View File

@ -2328,7 +2328,7 @@ function events_page_comments ($event, $childrens_ids = array()) {
$table_comments->style[1] = 'text-align: left;';
$table_comments->class = "alternate rounded_cells";
$event_comments = io_safe_output($event["user_comment"]);
$event_comments = $event["user_comment"];
$event_comments = str_replace( array("\n", '&#x0a;'), "<br>", $event_comments);
// If comments are not stored in json, the format is old
@ -2344,7 +2344,6 @@ function events_page_comments ($event, $childrens_ids = array()) {
$comments_format = 'new';
}
switch($comments_format) {
case 'new':
if (empty($event_comments_array)) {