Commit 33b0a6aca86168ad1f6045b21774901eb3f52e27

Authored by Luciano Prestes
1 parent 1a89b572

Fix edit software with another license

Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Signed-off-by: Omar Junior <omarroinuj@gmail.com>
src/noosfero-spb/software_communities/controllers/software_communities_plugin_myprofile_controller.rb
... ... @@ -169,6 +169,7 @@ class SoftwareCommunitiesPluginMyprofileController &lt; MyProfileController
169 169 @another_license_link = ""
170 170  
171 171 license_another = LicenseInfo.find_by_version("Another")
  172 + @license_id = license_another.id if license_another
172 173 if license_another && @software_info.license_info_id == license_another.id
173 174 @license_version = "Another"
174 175 @another_license_version = @software_info.license_info.version
... ...