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
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/work_items/update_service.rb')
-rw-r--r--app/services/work_items/update_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/work_items/update_service.rb b/app/services/work_items/update_service.rb
index defdeebfed8..27b318d280f 100644
--- a/app/services/work_items/update_service.rb
+++ b/app/services/work_items/update_service.rb
@@ -5,10 +5,10 @@ module WorkItems
extend Gitlab::Utils::Override
include WidgetableService
- def initialize(container:, current_user: nil, params: {}, spam_params: nil, widget_params: {})
+ def initialize(container:, current_user: nil, params: {}, perform_spam_check: false, widget_params: {})
params[:widget_params] = true if widget_params.present?
- super(container: container, current_user: current_user, params: params, spam_params: spam_params)
+ super(container: container, current_user: current_user, params: params, perform_spam_check: perform_spam_check)
@widget_params = widget_params
end
@@ -59,6 +59,7 @@ module WorkItems
super
end
+ override :after_update
def after_update(work_item, old_associations)
super