Permalink
Browse files

Fixes #17075: Import plugins should be able to set last_updated field…

… to a date in the past.
  • Loading branch information...
1 parent facc26e commit d5e5532325297c9daeeb223e83c06d9c186214cd @vboctor vboctor committed Mar 10, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/bug_api.php
View
@@ -1510,7 +1510,9 @@ function bug_set_field( $p_bug_id, $p_field_name, $p_value ) {
db_query_bound( $query, Array( $c_value, $c_bug_id ) );
# updated the last_updated date
- bug_update_date( $p_bug_id );
+ if ( $p_field_name != 'last_updated' ) {
+ bug_update_date( $p_bug_id );
+ }
# log changes except for duplicate_id which is obsolete and should be removed in
# MantisBT 1.3.

0 comments on commit d5e5532

Please sign in to comment.