summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-11 10:02:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-11 10:02:24 +0000
commit686430ee3674abb8ff1c622d40fcce1926512c80 (patch)
tree926523df1b2fa12d82b12da5eb73c5834ee99dcb /app/helpers
parent165327a074d8fc248da3a9721f1ad9a155b72cd6 (diff)
downloadredmine-686430ee3674abb8ff1c622d40fcce1926512c80.tar.gz
redmine-686430ee3674abb8ff1c622d40fcce1926512c80.zip
Fixed: wrong section edit links when a heading contains inline code (#10199).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8841 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 78c4b7b2e..ac59ae87f 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -504,11 +504,14 @@ module ApplicationHelper
@parsed_headings = []
@current_section = 0 if options[:edit_section_links]
+
+ parse_sections(text, project, obj, attr, only_path, options)
text = parse_non_pre_blocks(text) do |text|
- [:parse_sections, :parse_inline_attachments, :parse_wiki_links, :parse_redmine_links, :parse_macros, :parse_headings].each do |method_name|
+ [:parse_inline_attachments, :parse_wiki_links, :parse_redmine_links, :parse_macros].each do |method_name|
send method_name, text, project, obj, attr, only_path, options
end
end
+ parse_headings(text, project, obj, attr, only_path, options)
if @parsed_headings.any?
replace_toc(text, @parsed_headings)