##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r10706:2844e9090238
parent child
Show More
@@ -40,8 +40,8 class SearchController < ApplicationController
40 begin; offset = params[:offset].to_time if params[:offset]; rescue; end
40 begin; offset = params[:offset].to_time if params[:offset]; rescue; end
41
41
42 # quick jump to an issue
42 # quick jump to an issue
43 if @question.match(/^#?(\d+)$/) && Issue.visible.find_by_id($1.to_i)
43 if (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i))
44 redirect_to :controller => "issues", :action => "show", :id => $1
44 redirect_to issue_path(issue)
45 return
45 return
46 end
46 end
47
47
General Comments 0
You need to be logged in to leave comments. Login now