app/controllers/ops_controller/settings/zones.rb
# Get variables from zone edit form
Get variables from zone edit form
Get variables from zone edit form
def zone_get_form_vars
    @zone = @edit[:zone_id] ? Zone.find(@edit[:zone_id]) : Zone.new
    copy_params_if_present(@edit[:new], params, %i[name description proxy_server_ip userid password verify])
    @edit[:new][:concurrent_vm_scans] = params[:max_scans].to_i if params[:max_scans]
    settings_get_form_vars_sync_ntp
    set_verify_status
  end
def zone_get_form_vars @zone = @edit [ :zone_id ] ? Zone . find ( @edit [ :zone_id ] ) : Zone . new copy_params_if_present ( @edit [ :new ] , params , %i[ name description proxy_server_ip userid password verify ] ) @edit [ :new ] [ :concurrent_vm_scans ] = params [ :max_scans ] . to_i if params [ :max_scans ] settings_get_form_vars_sync_ntp set_verify_status end
Get variables from zone edit form
Get variables from zone edit form