diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-05 17:10:03 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-06 16:18:06 +0300 |
commit | f8da5eb8ef7cb757b88fd1c8d3c2dea7671e7daa (patch) | |
tree | 534c20425d0a605957fcb14b67483f6691ebb1ae /app | |
parent | 8a96910cf5b361295c52b1c3ee89fc7435ad5927 (diff) |
Revert "Label list shows all issues (opened or closed) with that label"
Diffstat (limited to 'app')
-rw-r--r-- | app/services/boards/issues/list_service.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/services/boards/issues/list_service.rb b/app/services/boards/issues/list_service.rb index 34efd09ed9f..435a8c6e681 100644 --- a/app/services/boards/issues/list_service.rb +++ b/app/services/boards/issues/list_service.rb @@ -36,12 +36,7 @@ module Boards end def set_state - params[:state] = - case list.list_type.to_sym - when :backlog then 'opened' - when :done then 'closed' - else 'all' - end + params[:state] = list.done? ? 'closed' : 'opened' end def board_label_ids |