Project

General

Profile

« Previous | Next » 

Revision ae98767d

Added by Amos Benari almost 12 years ago

  • ID ae98767dafb821202913c7ecdb77b72c7efbbdc2

fixes #1563 problem cloning host in latest develop

View differences:

app/controllers/hosts_controller.rb
load_vars_for_ajax
new.puppetclasses = @host.puppetclasses
# Clone any parameters as well
@host.host_parameters.each{|param| new.host_parameters << param.clone}
flash[:warning] = "The following fields will need reviewing"
@host.host_parameters.each{|param| new.host_parameters << HostParameter.new(:name => param.name, :value => param.value)}
flash[:warning] = "The marked fields will need reviewing"
new.valid?
@host = new
render :action => :new

Also available in: Unified diff