From: <vb...@us...> - 2008-10-25 19:07:14
|
Revision: 5732 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5732&view=rev Author: vboctor Date: 2008-10-25 19:07:10 +0000 (Sat, 25 Oct 2008) Log Message: ----------- Fixes #9746: Bugnotes are messed up when some are invisible (private) Modified Paths: -------------- trunk/mantisbt/core/bugnote_api.php Modified: trunk/mantisbt/core/bugnote_api.php =================================================================== --- trunk/mantisbt/core/bugnote_api.php 2008-10-25 18:40:19 UTC (rev 5731) +++ trunk/mantisbt/core/bugnote_api.php 2008-10-25 19:07:10 UTC (rev 5732) @@ -304,7 +304,8 @@ $t_time_tracking_visible = access_compare_level( $t_user_access_level, config_get( 'time_tracking_view_threshold' ) ); $t_bugnotes = array(); - foreach( $t_all_bugnotes as $t_note_index => $t_bugnote ) { + $t_note_index = 0; + foreach( $t_all_bugnotes as $t_bugnote ) { if( $t_private_bugnote_visible || $t_bugnote->reporter_id == $t_user_id || ( VS_PUBLIC == $t_bugnote->view_state ) ) { # If the access level specified is not enough to see time tracking information @@ -313,7 +314,7 @@ $t_bugnote->time_tracking = 0; } - $t_bugnotes[$t_note_index] = $t_bugnote; + $t_bugnotes[$t_note_index++] = $t_bugnote; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |