Commit 77e8fa3b690e98cb3d46b789fefcfeb2c59c7b06

Authored by Francisco Júnior
1 parent d73ff7ba

minor fixes

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'
  24 + params[:profile_data][:visible] = params[:profile_data][:visible] == '0' unless profile.person?
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
... ...