Commit f8d0209e85ccf7baf77bc05a878206dfedd6f8a3

Authored by Victor Costa
2 parents e81fd39d 5c2a0532

Merge branch 'I257-option_to_hide_community' into stable

app/controllers/my_profile/profile_editor_controller.rb
... ... @@ -21,7 +21,7 @@ class ProfileEditorController < MyProfileController
21 21 Profile.transaction do
22 22 Image.transaction do
23 23 begin
24   - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' unless profile.person?
  24 + params[:profile_data][:visible] = params[:profile_data][:visible] == '0' if profile.community? && params[:profile_data].present?
25 25 @plugins.dispatch(:profile_editor_transaction_extras)
26 26 @profile_data.update_attributes!(params[:profile_data])
27 27 redirect_to :action => 'index', :profile => profile.identifier
... ...