summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-24 21:51:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-24 21:51:10 +0000
commit28cdc8adfc5d63befe8d763c8b84cfe24e3f9603 (patch)
treeda8643e6a5f7e623876e95c5f9ca0099283a6521 /app
parent3209c4c5e48fd12239a3f5b71384ee5e09d93f61 (diff)
downloadredmine-28cdc8adfc5d63befe8d763c8b84cfe24e3f9603.tar.gz
redmine-28cdc8adfc5d63befe8d763c8b84cfe24e3f9603.zip
Don't turn #nnn with leading zeros into link (#11494).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10077 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a20b8d693..f97cc0638 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -703,7 +703,7 @@ module ApplicationHelper
oid = identifier.to_i
case prefix
when nil
- if issue = Issue.visible.find_by_id(oid, :include => :status)
+ if oid.to_s == identifier && issue = Issue.visible.find_by_id(oid, :include => :status)
anchor = comment_id ? "note-#{comment_id}" : nil
link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid, :anchor => anchor},
:class => issue.css_classes,