--- mantisbt-1.2.8/core/bugnote_api.php 2011-09-06 15:23:10.000000000 +0100 +++ mantis/core/bugnote_api.php 2012-04-24 11:20:37.794674092 +0100 @@ -484,7 +484,7 @@ * @return bool * @access public */ -function bugnote_date_update( $p_bugnote_id ) { +function bugnote_date_update( $p_bugnote_id, $p_bug_update=false ) { $c_bugnote_id = db_prepare_int( $p_bugnote_id ); $t_bugnote_table = db_get_table( 'mantis_bugnote_table' ); @@ -493,6 +493,16 @@ WHERE id=" . db_param(); db_query_bound( $query, Array( db_now(), $c_bugnote_id ) ); + if ( $p_bug_update ) { + $t_bug_id = bugnote_get_field( $p_bugnote_id, 'bug_id' ); + $t_bug_table = db_get_table( 'mantis_bug_table' ); + + $query = "UPDATE $t_bug_table + SET last_updated=" . db_param() ." + WHERE id=" . db_param(); + db_query_bound( $query, Array( db_now(), $t_bug_id ) ); + } + # db_query errors if there was a problem so: return true; } @@ -527,7 +537,7 @@ db_query_bound( $query, Array( $p_bugnote_text, $t_bugnote_text_id ) ); # updated the last_updated date - bugnote_date_update( $p_bugnote_id ); + bugnote_date_update( $p_bugnote_id, true ); # insert a new revision $t_user_id = auth_get_current_user_id();