From 77e8fa3b690e98cb3d46b789fefcfeb2c59c7b06 Mon Sep 17 00:00:00 2001 From: Marcelo JĂșnior Date: Mon, 12 Jan 2015 17:31:38 -0300 Subject: [PATCH] minor fixes --- app/controllers/my_profile/profile_editor_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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