]> source.dussan.org Git - redmine.git/commitdiff
Test failure with JRuby 1.7.2 (#12228).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Jan 2013 12:03:47 +0000 (12:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Jan 2013 12:03:47 +0000 (12:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11279 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 08141a25cf92c203f3ce1e42bba17ff6bbce2d7e..344fe1c964dae158d04b880df396bd25ff55b78e 100644 (file)
@@ -588,9 +588,9 @@ module ApplicationHelper
       esc, all, page, title = $1, $2, $3, $5
       if esc.nil?
         if page =~ /^([^\:]+)\:(.*)$/
-          link_project = Project.find_by_identifier($1) || Project.find_by_name($1)
-          page = $2
-          title ||= $1 if page.blank?
+          identifier, page = $1, $2
+          link_project = Project.find_by_identifier(identifier) || Project.find_by_name(identifier)
+          title ||= identifier if page.blank?
         end
 
         if link_project && link_project.wiki