Defect #3627 ยป search_redirect_issue_r2819.patch
| app/controllers/search_controller.rb (working copy) | ||
|---|---|---|
| 43 | 43 |
begin; offset = params[:offset].to_time if params[:offset]; rescue; end |
| 44 | 44 |
|
| 45 | 45 |
# quick jump to an issue |
| 46 |
if @question.match(/^#?(\d+)$/) && Issue.find_by_id($1, :include => :project, :conditions => Project.visible_by(User.current))
|
|
| 47 |
redirect_to :controller => "issues", :action => "show", :id => $1
|
|
| 46 |
if @question.match(/^(#|issue:)+(\d+)$/) && Issue.find_by_id($2, :include => :project, :conditions => Project.visible_by(User.current))
|
|
| 47 |
redirect_to :controller => "issues", :action => "show", :id => $2
|
|
| 48 | 48 |
return |
| 49 | 49 |
end |
| 50 | 50 |
|