summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-28 16:13:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-28 16:13:39 +0000
commit4ded4277c51b8f35dc9eaa031c918e55470a44b5 (patch)
tree23ed025fdde0efd01bf016e4109a9fe3dddeac4f /app/views/common
parentb60bedafc0589167b88053a98c2fc776d748fc74 (diff)
downloadredmine-4ded4277c51b8f35dc9eaa031c918e55470a44b5.tar.gz
redmine-4ded4277c51b8f35dc9eaa031c918e55470a44b5.zip
Activity view now uses events attributes.
Fixed: error on activity feed if it contains a document. git-svn-id: http://redmine.rubyforge.org/svn/trunk@876 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/feed.atom.rxml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/common/feed.atom.rxml b/app/views/common/feed.atom.rxml
index b5f733460..59b3163f4 100644
--- a/app/views/common/feed.atom.rxml
+++ b/app/views/common/feed.atom.rxml
@@ -13,7 +13,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.link "rel" => "alternate", "href" => url_for(item.event_url(:only_path => false))
xml.id url_for(item.event_url(:only_path => false))
xml.updated item.event_datetime.xmlschema
- author = item.event_author
+ author = item.event_author if item.respond_to?(:author)
xml.author do
xml.name(author.is_a?(User) ? author.name : author)
xml.email(author.mail) if author.is_a?(User)