2014-07-29 Junichi Satoh <junichi@rworks.jp>

* include/functions_events.php: Fixed a bug that event's comment
	is not shown when it includes newline.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10360 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
jsatoh 2014-07-29 06:42:33 +00:00
parent 36d2981f8b
commit bf919297b4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-07-29 Junichi Satoh <junichi@rworks.jp>
* include/functions_events.php: Fixed a bug that event's comment
is not shown when it includes newline.
2014-07-28 Junichi Satoh <junichi@rworks.jp>
* operation/agentes/estado_agente.php: Fixed sql error.

View File

@ -2253,6 +2253,7 @@ function events_page_comments ($event) {
$table_comments->class = "alternate rounded_cells";
$event_comments = io_safe_output($event["user_comment"]);
$event_comments = str_replace("\n", "<br>", $event_comments);
// If comments are not stored in json, the format is old
$event_comments_array = json_decode($event_comments, true);