diff --git a/doc/ChangeLog b/doc/ChangeLog index cbae5dbc87..8fce4f7de9 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -18,6 +18,7 @@ Mantis * Modified disk uploads to use the file_download.php script. * Added HTTP_POST_FILES to core_API.php. * Bumped version number. + * Modified bugnote last_modified query slightly. 05.12.2002 - 0.17.2 diff --git a/view_all_inc.php b/view_all_inc.php index 53eac9206f..4af1793c5c 100644 --- a/view_all_inc.php +++ b/view_all_inc.php @@ -232,9 +232,11 @@ # grab the project name $project_name = get_project_field($v_project_id,"NAME"); - $query = "SELECT UNIX_TIMESTAMP(MAX(last_modified)) as last_modified + $query = "SELECT UNIX_TIMESTAMP(last_modified) as last_modified FROM $g_mantis_bugnote_table - WHERE bug_id='$v_id'"; + WHERE bug_id='$v_id' + ORDER BY last_modified DESC + LIMIT 1"; $res2 = db_query( $query ); $v_bugnote_updated = db_result( $res2, 0, 0 );