summaryrefslogtreecommitdiff
path: root/app/services/boards/issues
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2017-03-03 20:10:07 +0200
committerValery Sizov <valery@gitlab.com>2017-03-03 20:23:33 +0200
commit32538def144f88a68c5cdfbe7cb7cb2866bce932 (patch)
tree77b71c3be17d359e92b5da1de44c6bbfe34f7fd4 /app/services/boards/issues
parent39db04bb17aa4ddb02290e4681d394190adb7e3c (diff)
downloadgitlab-ce-32538def144f88a68c5cdfbe7cb7cb2866bce932.tar.gz
[Issue sorting on board] Addressing review issues
Diffstat (limited to 'app/services/boards/issues')
-rw-r--r--app/services/boards/issues/move_service.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/services/boards/issues/move_service.rb b/app/services/boards/issues/move_service.rb
index a946a42a116..2a9981ab884 100644
--- a/app/services/boards/issues/move_service.rb
+++ b/app/services/boards/issues/move_service.rb
@@ -68,11 +68,9 @@ module Boards
end
def move_between_iids
- move_after_iid = params[:move_after_iid]
- move_before_iid = params[:move_before_iid]
- return unless move_after_iid || move_before_iid
+ return unless params[:move_after_iid] || params[:move_before_iid]
- [move_after_iid, move_before_iid]
+ [params[:move_after_iid], params[:move_before_iid]]
end
end
end