diff options
author | Robert Speicher <robert@gitlab.com> | 2016-08-25 21:04:22 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-08-25 21:04:22 +0300 |
commit | 1cc59ffec6f9c255edc48348a95f030917609122 (patch) | |
tree | 08f6eb16615cfa2c381af855fcc67705c12dc0e1 /app/services | |
parent | 4c17e1b3dbb6c30345d52fc8c9789440f4fcb326 (diff) | |
parent | baa73b659ae50fa82d9c4be6ab5080a9475d7041 (diff) |
Merge branch '21257-label-lists-should-shows-opened-or-closed-issues-with-that-label' into 'master'
Label list shows all issues (opened or closed) with that label
## What does this MR do?
Change the label list to shows all issues (opened or closed) with that label.
## What are the relevant issue numbers?
Closes #21257
See merge request !5991
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/boards/issues/list_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/boards/issues/list_service.rb b/app/services/boards/issues/list_service.rb index 435a8c6e681..34efd09ed9f 100644 --- a/app/services/boards/issues/list_service.rb +++ b/app/services/boards/issues/list_service.rb @@ -36,7 +36,12 @@ module Boards end def set_state - params[:state] = list.done? ? 'closed' : 'opened' + params[:state] = + case list.list_type.to_sym + when :backlog then 'opened' + when :done then 'closed' + else 'all' + end end def board_label_ids |