diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-03-15 07:28:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-03-15 07:28:25 +0000 |
commit | fa8984f36a3f61588c103da323cfbb0764243ef8 (patch) | |
tree | 9884d5484f6a8a2d30bfce919c8661097eb0d6e6 /app | |
parent | e050625a29bbc3d29b0de18d8df1d9635c24be59 (diff) | |
download | redmine-fa8984f36a3f61588c103da323cfbb0764243ef8.tar.gz redmine-fa8984f36a3f61588c103da323cfbb0764243ef8.zip |
Searching for issue number with REST API redirects to issue HTML page (#29055).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17949 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/search_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 37ac37cac..8ae53e7ff 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -39,7 +39,7 @@ class SearchController < ApplicationController end # quick jump to an issue - if (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i)) + if !api_request? && (m = @question.match(/^#?(\d+)$/)) && (issue = Issue.visible.find_by_id(m[1].to_i)) redirect_to issue_path(issue) return end |