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/issues/reorder_service.rb')
-rw-r--r--app/services/issues/reorder_service.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/issues/reorder_service.rb b/app/services/issues/reorder_service.rb
index 5443d41ac30..059b4196b23 100644
--- a/app/services/issues/reorder_service.rb
+++ b/app/services/issues/reorder_service.rb
@@ -4,6 +4,11 @@ module Issues
class ReorderService < Issues::BaseService
include Gitlab::Utils::StrongMemoize
+ # TODO: this is to be removed once we get to rename the IssuableBaseService project param to container
+ def initialize(container:, current_user: nil, params: {})
+ super(project: container, current_user: current_user, params: params)
+ end
+
def execute(issue)
return false unless can?(current_user, :update_issue, issue)
return false unless move_between_ids
@@ -14,7 +19,7 @@ module Issues
private
def update(issue, attrs)
- ::Issues::UpdateService.new(project: project, current_user: current_user, params: attrs).execute(issue)
+ ::Issues::UpdateService.new(container: project, current_user: current_user, params: attrs).execute(issue)
rescue ActiveRecord::RecordNotFound
false
end