Commit ac44e384 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Add project scope to milestone search

parent b5762104
...@@ -81,7 +81,14 @@ class IssuableFinder ...@@ -81,7 +81,14 @@ class IssuableFinder
@milestones = @milestones =
if milestones? if milestones?
Milestone.where(title: params[:milestone_title]) scope =
if project
project.milestones
else
Milestone.all
end
scope.where(title: params[:milestone_title])
else else
nil nil
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment