Commit 33b0a6aca86168ad1f6045b21774901eb3f52e27
1 parent
1a89b572
Exists in
fix_edit_software_with_another_license
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>
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/noosfero-spb/software_communities/controllers/software_communities_plugin_myprofile_controller.rb
@@ -169,6 +169,7 @@ class SoftwareCommunitiesPluginMyprofileController < MyProfileController | @@ -169,6 +169,7 @@ class SoftwareCommunitiesPluginMyprofileController < MyProfileController | ||
169 | @another_license_link = "" | 169 | @another_license_link = "" |
170 | 170 | ||
171 | license_another = LicenseInfo.find_by_version("Another") | 171 | license_another = LicenseInfo.find_by_version("Another") |
172 | + @license_id = license_another.id if license_another | ||
172 | if license_another && @software_info.license_info_id == license_another.id | 173 | if license_another && @software_info.license_info_id == license_another.id |
173 | @license_version = "Another" | 174 | @license_version = "Another" |
174 | @another_license_version = @software_info.license_info.version | 175 | @another_license_version = @software_info.license_info.version |