Project

General

Profile

« Previous | Next » 

Revision 19bd108a

Added by Paul Kelly about 14 years ago

  • ID 19bd108a00fe760cfaac4b6bc7ef0f496ee29c1d

Fixes #240 - Clone operation highlights changes correctly

The clone operation no longer flags edits as errors. This looks better.

View differences:

app/controllers/hosts_controller.rb
# Clone any parameters as well
@original.host_parameters.each{|param| @host.host_parameters << param.clone}
flash[:error_customisation] = {:header_message => nil, :class => "flash notice", :id => nil,
:message => "The following fields will need modification:" }
:message => "The following fields will need reviewing:" }
@host.valid?
render :action => :new
end

Also available in: Unified diff