summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-24 15:20:35 +0000
committerPhil Hughes <me@iamphill.com>2016-03-29 11:59:13 +0100
commit88024b17c03f5cc834465574c55a566f8f1a5819 (patch)
treedd3dc42801c5553103e6a9d6922918266b6377e1 /app/finders
parent3aeda8c94f446931a38f3dcc22b7c835ef5cc818 (diff)
downloadgitlab-ce-88024b17c03f5cc834465574c55a566f8f1a5819.tar.gz
Standardised the output of the JSON to always include the name
The frontend will then always use the name as the ID - like previous
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/issuable_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb
index a7799b91eb8..f1df6832bf6 100644
--- a/app/finders/issuable_finder.rb
+++ b/app/finders/issuable_finder.rb
@@ -243,7 +243,7 @@ class IssuableFinder
end
def filter_by_upcoming_milestone?
- params[:milestone_title] == 'Upcoming'
+ params[:milestone_title] == Milestone::Upcoming.name
end
def by_milestone(items)