Commit e0ca6a861624ca8fb4bf658ddae85a45a76af013
Committed by
Tallys Martins
1 parent
8100e1ef
Exists in
master
and in
5 other branches
Fix public software checkbox
Signed-off-by: Dylan Guedes <djmgguedes@gmail.com> Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
controllers/software_communities_plugin_myprofile_controller.rb
| ... | ... | @@ -80,8 +80,8 @@ class SoftwareCommunitiesPluginMyprofileController < MyProfileController |
| 80 | 80 | end |
| 81 | 81 | |
| 82 | 82 | def constroy_software |
| 83 | - params[:software][:public_software] ||= false | |
| 84 | 83 | @software_info = @profile.software_info |
| 84 | + params[:software][:public_software] ||= false unless @software_info.public_software? | |
| 85 | 85 | @license = LicenseInfo.find(params[:license][:license_infos_id]) |
| 86 | 86 | @software_info.license_info = @license |
| 87 | 87 | @software_info.update_attributes(params[:software]) | ... | ... |