Commit 8ac1c9941b74c265a55b4116cf5dd8b4f2a96b2f
1 parent
eaa766f9
Exists in
master
and in
79 other branches
Use software template even with the task
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/software_info.rb
... | ... | @@ -65,8 +65,10 @@ class SoftwareInfo < ActiveRecord::Base |
65 | 65 | if !environment.admins.include? requestor |
66 | 66 | CreateSoftware.create!(attributes.merge(:requestor => requestor, :environment => environment, :name => name, :license_info => license_info)) |
67 | 67 | else |
68 | + software_template = Community["software"] | |
68 | 69 | community = Community.new(:name => name) |
69 | 70 | community.environment = environment |
71 | + community.template_id = software_template.id if (!software_template.blank? && software_template.is_template) | |
70 | 72 | software_info.license_info = license_info |
71 | 73 | software_info.save |
72 | 74 | community.software_info = software_info | ... | ... |