summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-24 14:57:57 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-25 09:39:23 -0300
commit3bfb94b7593c3e14fa974701d733d6dc3c744bd2 (patch)
tree6fbf7ce0c31cc3d141ece42193fb23b1e0ee8eaa /app/services
parent7bbb523b23638c52b3c0ba43d8f3dbef8840aad6 (diff)
downloadgitlab-ce-3bfb94b7593c3e14fa974701d733d6dc3c744bd2.tar.gz
Label list shows all issues (opened or closed) with that label
Diffstat (limited to 'app/services')
-rw-r--r--app/services/boards/issues/list_service.rb7
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