diff options
author | Robert Speicher <robert@gitlab.com> | 2016-08-25 21:04:22 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-08-26 19:34:37 +0300 |
commit | d137ce504fa1f9a5098dc63814e5375643f6f226 (patch) | |
tree | ad20469266c99a4d70837cce73bcf89064496020 /app | |
parent | 32a80b2614b959b970a4b650c2a8886940a60b8c (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')
-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 |