2013-12-10 Sergio Martin <sergio.martin@artica.es>

* include/functions_events.php: Fix storing of event 
	comments in metaconsole and shot the event comments more
	recent first. 
	Incident #440



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9199 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-12-10 12:22:55 +00:00
parent 202b6a1143
commit 38f3b09645
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-12-10 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fix storing of event
comments in metaconsole and shot the event comments more
recent first.
Incident #440
2013-12-09 Sergio Martin <sergio.martin@artica.es>
* include/styles/pandora.css: Fix styles in group view

View File

@ -547,7 +547,7 @@ function events_comment ($id_event, $comment = '', $action = 'Added comment', $m
if (is_array($id_event)) {
$first_event = reset($id_event);
}
$event_comments = db_get_value('user_comment', 'tevento', 'id_evento', $first_event);
$event_comments = db_get_value('user_comment', $event_table, 'id_evento', $first_event);
$event_comments_array = array();
if ($event_comments == '') {
@ -2259,6 +2259,9 @@ function events_page_comments ($event) {
// If comments are not stored in json, the format is old
$event_comments_array = json_decode($event_comments, true);
// Show the comments more recent first
$event_comments_array = array_reverse($event_comments_array);
if (is_null($event_comments_array)) {
$comments_format = 'old';
}