diff --git a/ChangeLog b/ChangeLog
index 6bf5c57e39..06c7e797ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,10 +35,12 @@ To Do:
* Added 'feedback' status - indicates that it requires more information
* Added show Mantis version capability
* Fixed bug with Bugnote Add button showing up in the wrong places
+ * Fixed bug with SQL queries updating both submitted and last updated dates on bugs
+ * Fixed bug with SQL queries updating both submitted and last access dates on users
* Modified version to be an enum.
* Modified ordering methods in manage account
* Modified viewing preferences
- * Made enum displays (category, status, etc) easier to maintain via print_lists();
+ * Made enum displays (category, status, etc) easier to maintain via print_lists()
* Renamed access_level_check_greater() to access_level_check_greater_or_equal()
* Renamed $g_bug_view_all_page $g_bug_view_all_page $g_bug_view_all_page
to $g_view_bug_all_page $g_view_bug_page $g_view_bug_advanced_page
diff --git a/core_API.php b/core_API.php
index 1670fa1ac8..b3b0f49242 100644
--- a/core_API.php
+++ b/core_API.php
@@ -369,9 +369,17 @@ function login_cookie_check( $p_redirect_url="" ) {
header( "Location: $g_logout_page" );
}
+ ### grab creation date to protect from change
+ ### Suspect a bug in mysql.. not sure. Same deal for bug updates
+ $query = "SELECT date_created
+ FROM $g_mantis_user_table
+ WHERE cookie_string='$g_string_cookie_val'";
+ $result = mysql_query( $query );
+ $t_date_created = mysql_result( $result, 0 );
+
### update last_visit date
$query = "UPDATE $g_mantis_user_table
- SET last_visit=NOW()
+ SET last_visit=NOW(), date_created='$t_date_created'
WHERE cookie_string='$g_string_cookie_val'";
$result = mysql_query( $query );
db_mysql_close();
diff --git a/view_bug_all_page.php3 b/view_bug_all_page.php3
index b0fd3cc597..4923cdb291 100644
--- a/view_bug_all_page.php3
+++ b/view_bug_all_page.php3
@@ -90,7 +90,7 @@
print_list( "status", $f_show_status ) ?>
Show:
- Changed:
+ Changed(hrs):