Commit 3bc9b8f87ecc78a1e983736f655bb67c17a5f65c

Authored by Fabio Teixeira
1 parent 63420bb0

Fix top_url error on task approval

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
plugins/communities_ratings/lib/create_community_rating_comment.rb
@@ -95,7 +95,7 @@ class CreateCommunityRatingComment &lt; Task @@ -95,7 +95,7 @@ class CreateCommunityRatingComment &lt; Task
95 identifier = self.source.identifier 95 identifier = self.source.identifier
96 # The use of url_for doesn't allow the /social within the Public Software 96 # The use of url_for doesn't allow the /social within the Public Software
97 # portal. That's why the url is mounted so 'hard coded' 97 # portal. That's why the url is mounted so 'hard coded'
98 - url = "#{organization.top_url}/profile/#{identifier}" 98 + url = "#{self.environment.top_url}/profile/#{identifier}"
99 end 99 end
100 100
101 end 101 end