Commit 51c8f314 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes URLs in atom feeds broken by r3681 (#5403).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3703 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0d938dff
...@@ -447,6 +447,9 @@ class ProjectsControllerTest < ActionController::TestCase ...@@ -447,6 +447,9 @@ class ProjectsControllerTest < ActionController::TestCase
get :activity, :format => 'atom' get :activity, :format => 'atom'
assert_response :success assert_response :success
assert_template 'common/feed.atom.rxml' assert_template 'common/feed.atom.rxml'
assert_tag :tag => 'entry', :child => {
:tag => 'link',
:attributes => {:href => 'http://test.host/issues/11'}}
end end
def test_archive def test_archive
......
...@@ -66,11 +66,11 @@ module Redmine ...@@ -66,11 +66,11 @@ module Redmine
def event_url(options = {}) def event_url(options = {})
option = event_options[:url] option = event_options[:url]
if option.is_a?(Proc) if option.is_a?(Proc)
option.call(self) option.call(self).merge(options)
elsif option.is_a?(Hash) elsif option.is_a?(Hash)
option.merge(options) option.merge(options)
elsif option.is_a?(Symbol) elsif option.is_a?(Symbol)
send(option) send(option).merge(options)
else else
option option
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment