mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Fixed problems with show comment in events. Tiquet: #2820
This commit is contained in:
parent
f432535f07
commit
a72f6e051b
@ -2474,7 +2474,7 @@ function events_page_comments ($event, $childrens_ids = array()) {
|
|||||||
$table_comments->style[1] = 'text-align: left;';
|
$table_comments->style[1] = 'text-align: left;';
|
||||||
$table_comments->class = "alternate rounded_cells";
|
$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);
|
$event_comments = str_replace( array("\n", '
'), "<br>", $event_comments);
|
||||||
|
|
||||||
// If comments are not stored in json, the format is old
|
// If comments are not stored in json, the format is old
|
||||||
@ -2489,7 +2489,6 @@ function events_page_comments ($event, $childrens_ids = array()) {
|
|||||||
else {
|
else {
|
||||||
$comments_format = 'new';
|
$comments_format = 'new';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
switch($comments_format) {
|
switch($comments_format) {
|
||||||
case 'new':
|
case 'new':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user