Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-08-15 19:50:41 +0300
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-08-30 20:37:21 +0300
commit7f0bcf04323ad69b64a90112896971ea8d1a5f99 (patch)
treec8347404516997787c053859a6097e91d9cfc9d9 /app
parentb7d29ce659412e9a2acc411c841420eb13d115ba (diff)
refactors update issue api request and some minor comments
Diffstat (limited to 'app')
-rw-r--r--app/services/issuable_base_service.rb7
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')