Commit d79ba9cc77967aec12ff7da0691cb5992019e604

Authored by Leandro Santos
1 parent 3c1066ed

hotspot on server

plugins/community_track/lib/community_track_plugin/track.rb
... ... @@ -65,7 +65,7 @@ class CommunityTrackPlugin::Track < Folder
65 65  
66 66 def category_name
67 67 category = categories.first
68   - category ? category.top_ancestor.name : ''
  68 + category ? (category.top_ancestor.nil? ? '' : category.top_ancestor.name) : ''
69 69 end
70 70  
71 71 def to_html(options = {})
... ...