Commit d79ba9cc77967aec12ff7da0691cb5992019e604
1 parent
3c1066ed
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
hotspot on server
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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 = {}) | ... | ... |