Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-07-12 22:50:33 +0300
committerRobert Speicher <robert@gitlab.com>2016-07-12 22:50:33 +0300
commit33b4fc315ed504511a7f23835939ff8915e0fe01 (patch)
tree1d2a3abd23857b283df92640ec9aca5e8f0dd5cf /app/finders/todos_finder.rb
parent7937014e1c4328d979d5d13eeb02a69ae82bf703 (diff)
parentd957d5f1aa45d3a8474678e5439ccdc09a545482 (diff)
Merge branch 'approval-required-todo' into 'master'
Add approval required todos Ports the 'approval required' todo type from EE - https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/547 See merge request !5217
Diffstat (limited to 'app/finders/todos_finder.rb')
-rw-r--r--app/finders/todos_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index 1a8f490355b..ff866c2faa5 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -37,7 +37,7 @@ class TodosFinder
private
def action_id?
- action_id.present? && [Todo::ASSIGNED, Todo::MENTIONED, Todo::BUILD_FAILED, Todo::MARKED].include?(action_id.to_i)
+ action_id.present? && Todo::ACTION_NAMES.has_key?(action_id.to_i)
end
def action_id