2011-06-17 Sergio Martin <sergio.martin@artica.es>

* include/functions_events.php: Fixed duplication of comments
	when validate events merged from 3.2.1



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4465 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-06-17 09:45:53 +00:00
parent e2790a2b75
commit 7a1696703e
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2011-06-17 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fixed duplication of comments
when validate events merged from 3.2.1
2011-06-16 Sancho Lerena <slerena@artica.es>
* include/styles/install.css,

View File

@ -185,14 +185,13 @@ function events_validate_event ($id_event, $similars = true, $comment = '', $new
}else {
$commentbox = '';
}
$comment = '<b>-- '.$new_status_string.' '.__('by').' '.$config['id_user'].' '.'['.date ($config["date_format"]).'] --</b><br>'.$commentbox;
foreach ($id_event as $event) {
$comment = '<b>-- '.$new_status_string.' '.__('by').' '.$config['id_user'].' '.'['.date ($config["date_format"]).'] --</b><br>'.$commentbox;
$fullevent = events_get_event($event);
if($fullevent['user_comment'] != ''){
$commentbox = '<div style="border:1px dotted #CCC; min-height: 10px;">'.$fullevent['user_comment'].'</div>';
$comment .= '<br>'.$fullevent['user_comment'];
}