diff --git a/app/controllers/my_profile/profile_editor_controller.rb b/app/controllers/my_profile/profile_editor_controller.rb index 353685c..5d5aa2a 100644 --- a/app/controllers/my_profile/profile_editor_controller.rb +++ b/app/controllers/my_profile/profile_editor_controller.rb @@ -21,7 +21,7 @@ class ProfileEditorController < MyProfileController Profile.transaction do Image.transaction do begin - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' + params[:profile_data][:visible] = params[:profile_data][:visible] == '0' unless profile.person? @plugins.dispatch(:profile_editor_transaction_extras) @profile_data.update_attributes!(params[:profile_data]) redirect_to :action => 'index', :profile => profile.identifier -- libgit2 0.21.2