Navigation Menu

Skip to content

Commit

Permalink
Modified bugnote last_modified query slightly. orders by last_modifie…
Browse files Browse the repository at this point in the history
…d instead of using MAX()

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@981 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed May 19, 2002
1 parent 8541631 commit 8676260
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions view_all_inc.php
Expand Up @@ -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 );

Expand Down

0 comments on commit 8676260

Please sign in to comment.