diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-15 19:50:41 +0300 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-30 20:37:21 +0300 |
commit | 7f0bcf04323ad69b64a90112896971ea8d1a5f99 (patch) | |
tree | c8347404516997787c053859a6097e91d9cfc9d9 /app/services/issuable_base_service.rb | |
parent | b7d29ce659412e9a2acc411c841420eb13d115ba (diff) |
refactors update issue api request and some minor comments
Diffstat (limited to 'app/services/issuable_base_service.rb')
-rw-r--r-- | app/services/issuable_base_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/issuable_base_service.rb b/app/services/issuable_base_service.rb index e06c37c323e..3b37365612e 100644 --- a/app/services/issuable_base_service.rb +++ b/app/services/issuable_base_service.rb @@ -162,7 +162,12 @@ class IssuableBaseService < BaseService if params.present? && update_issuable(issuable, params) issuable.reset_events_cache - handle_common_system_notes(issuable, old_labels: old_labels) + + # We do not touch as it will affect a update on updated_at field + ActiveRecord::Base.no_touching do + handle_common_system_notes(issuable, old_labels: old_labels) + end + handle_changes(issuable, old_labels: old_labels, old_mentioned_users: old_mentioned_users) issuable.create_new_cross_references!(current_user) execute_hooks(issuable, 'update') |