Merge Request #146
← To merge requests
From
fix_no_license
into
master
Fix no license
Arrumado o bug de ter softwares sem licensas, que devido a isso algumas telas quebravam.
Closes #363
Commits (1)
-
* Add a migration to fix softwares with no license * Add validates presence of license on software_info * Add test to not save software_info without license Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com> Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com> Signed-off-by: Omar Junior <omarroinuj@gmail.com> Signed-off-by: Pedro de Lyra <pedrodelyra@gmail.com>
-
Added 1 new commit:
- e7d811b3 - Add test to not save software_info without license
-
Quando clica para editar o software e tenta salvar, dá erro:
ActiveRecord::RecordNotFound (Couldn't find LicenseInfo with id=): config/plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:109:in `create_software' config/plugins/software_communities/controllers/software_communities_plugin_myprofile_controller.rb:31:in `edit_software'
Mesmo com o campo license_info_id preenchido, ele não retorna o license_info correto:
>> s.license_info_id => 72 >> s.license_info => #<LicenseInfo id: nil, version: nil, link: nil> >> LicenseInfo.find 72 => #<LicenseInfo id: 72, version: "Another", link: "#">
-
Added 1 new commit:
- a0e68afa - Validates presence of license on software_info
-
mentioned in commit 87b58049904de43f0115f1b7c334c38b8bb5aa39