Project

General

Profile

« Previous | Next » 

Revision b8bbd295

Added by Ohad Levy almost 12 years ago

  • ID b8bbd295e76b866998c755e50057c0aacf85ac69

fixes #1686 - can't choose subnet when domain comes from hostgroup

View differences:

app/controllers/hosts_controller.rb
if @domain
page['*[id*=domain_id]'].val(@domain.id)
if @subnet
if @domain.subnets.any?
page['#subnet_select'].html(render(:partial => 'common/domain', :locals => {:item => @host}))
page['#host_subnet_id'].val(@subnet.id).change
page['#host_subnet_id'].val(@subnet.id).change if @subnet
page['#sp_subnet'].html(render(:partial => 'hosts/sp_subnet', :locals => {:item => @host}))
end
end

Also available in: Unified diff