Fixed problems with show comment in events. Tiquet: #2820
(cherry picked from commit a72f6e051b
)
This commit is contained in:
parent
439cb08479
commit
923e91ed2d
|
@ -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", '
'), "<br>", $event_comments);
|
||||
|
||||
// If comments are not stored in json, the format is old
|
||||
|
@ -2343,7 +2343,6 @@ function events_page_comments ($event, $childrens_ids = array()) {
|
|||
else {
|
||||
$comments_format = 'new';
|
||||
}
|
||||
|
||||
|
||||
switch($comments_format) {
|
||||
case 'new':
|
||||
|
|
Loading…
Reference in New Issue