Commit 3bc9b8f87ecc78a1e983736f655bb67c17a5f65c
1 parent
63420bb0
Exists in
communities_ratings
Fix top_url error on task approval
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/communities_ratings/lib/create_community_rating_comment.rb
@@ -95,7 +95,7 @@ class CreateCommunityRatingComment < Task | @@ -95,7 +95,7 @@ class CreateCommunityRatingComment < 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 |