Skip to content
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 b5194d9 commit af23393915e1accef39ed7bb7e9ffe9cb529e8f6 @vboctor vboctor committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/bug_api.php
View
4 core/bug_api.php
@@ -1649,7 +1649,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 af23393

Please sign in to comment.
Something went wrong with that request. Please try again.