summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-04-29 12:29:59 +0000
committerStan Hu <stanhu@gmail.com>2017-04-29 12:29:59 +0000
commit303504df4788fead8ab200dd5490658489ba5385 (patch)
tree1b913d761b84fe3251e216713c67e640967d1522 /app/controllers
parent3717d21db1b17b2e18e6843d41a2c23d006918e9 (diff)
downloadgitlab-ce-303504df4788fead8ab200dd5490658489ba5385.tar.gz
Revert "Merge branch 'tc-no-todo-service-select' into 'master'"revert-c3c465ac
This reverts merge request !10845
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/dashboard/todos_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb
index 2b76e57c06a..4d7d45787fc 100644
--- a/app/controllers/dashboard/todos_controller.rb
+++ b/app/controllers/dashboard/todos_controller.rb
@@ -12,7 +12,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
end
def destroy
- TodoService.new.mark_todos_as_done_by_ids(params[:id], current_user)
+ TodoService.new.mark_todos_as_done_by_ids([params[:id]], current_user)
respond_to do |format|
format.html { redirect_to dashboard_todos_path, notice: 'Todo was successfully marked as done.' }
@@ -32,7 +32,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
end
def restore
- TodoService.new.mark_todos_as_pending_by_ids(params[:id], current_user)
+ TodoService.new.mark_todos_as_pending_by_ids([params[:id]], current_user)
render json: todos_counts
end