Commit cb896ae4e8e449a3cada0f47fa734bada88abb09
1 parent
0a5ba712
Exists in
master
and in
3 other branches
Fix bug on result profiles of communities_block
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/ext/communities_block.rb
| ... | ... | @@ -6,7 +6,7 @@ class CommunitiesBlock |
| 6 | 6 | result = get_visible_profiles |
| 7 | 7 | valid_communities_string = Community.get_valid_communities_string |
| 8 | 8 | |
| 9 | - result.each{|community| @scope.delete(community) unless eval(valid_communities_string)} | |
| 9 | + result.each{|community| result.delete(community) unless eval(valid_communities_string)} | |
| 10 | 10 | |
| 11 | 11 | result.slice(0..get_limit-1) |
| 12 | 12 | end | ... | ... |