diff options
-rw-r--r-- | app/services/boards/issues/list_service.rb | 2 | ||||
-rw-r--r-- | spec/services/boards/issues/list_service_spec.rb | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/services/boards/issues/list_service.rb b/app/services/boards/issues/list_service.rb index 221fea716f7..3c48577a6be 100644 --- a/app/services/boards/issues/list_service.rb +++ b/app/services/boards/issues/list_service.rb @@ -10,7 +10,7 @@ module Boards private def list - @list ||= board.lists.find(params[:list_id]) + @list ||= board.lists.find(params[:id]) end def filter_params diff --git a/spec/services/boards/issues/list_service_spec.rb b/spec/services/boards/issues/list_service_spec.rb index e809e80409b..010f097802d 100644 --- a/spec/services/boards/issues/list_service_spec.rb +++ b/spec/services/boards/issues/list_service_spec.rb @@ -37,7 +37,7 @@ describe Boards::Issues::ListService, services: true do end it 'delegates search to IssuesFinder' do - params = { list_id: list1.id } + params = { id: list1.id } expect_any_instance_of(IssuesFinder).to receive(:execute).once @@ -46,7 +46,7 @@ describe Boards::Issues::ListService, services: true do context 'sets default order to priority' do it 'returns opened issues when listing issues from Backlog' do - params = { list_id: backlog.id } + params = { id: backlog.id } issues = described_class.new(project, user, params).execute @@ -54,7 +54,7 @@ describe Boards::Issues::ListService, services: true do end it 'returns closed issues when listing issues from Done' do - params = { list_id: done.id } + params = { id: done.id } issues = described_class.new(project, user, params).execute @@ -62,7 +62,7 @@ describe Boards::Issues::ListService, services: true do end it 'returns opened issues that have label list applied when listing issues from a label list' do - params = { list_id: list1.id } + params = { id: list1.id } issues = described_class.new(project, user, params).execute |