From e0ca6a861624ca8fb4bf658ddae85a45a76af013 Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Tue, 18 Aug 2015 16:04:18 +0200 Subject: [PATCH] Fix public software checkbox --- controllers/software_communities_plugin_myprofile_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/software_communities_plugin_myprofile_controller.rb b/controllers/software_communities_plugin_myprofile_controller.rb index 6eb009a..256539a 100644 --- a/controllers/software_communities_plugin_myprofile_controller.rb +++ b/controllers/software_communities_plugin_myprofile_controller.rb @@ -80,8 +80,8 @@ class SoftwareCommunitiesPluginMyprofileController < MyProfileController end def constroy_software - params[:software][:public_software] ||= false @software_info = @profile.software_info + params[:software][:public_software] ||= false unless @software_info.public_software? @license = LicenseInfo.find(params[:license][:license_infos_id]) @software_info.license_info = @license @software_info.update_attributes(params[:software]) -- libgit2 0.21.2