diff --git a/app/services/dialog_field_visibility_service.rb b/app/services/dialog_field_visibility_service.rb index 0e96fd90e65..49aeee95d55 100644 --- a/app/services/dialog_field_visibility_service.rb +++ b/app/services/dialog_field_visibility_service.rb @@ -39,11 +39,11 @@ def determine_visibility(options) @field_names_to_edit = [] @field_names_to_show = [] - add_to_visiblity_arrays(@service_template_fields_visibility_service, options[:service_template_request]) - add_to_visiblity_arrays(@auto_placement_visibility_service, options[:auto_placement_enabled]) - add_to_visiblity_arrays(@number_of_vms_visibility_service, options[:number_of_vms], options[:platform]) + add_to_visibility_arrays(@service_template_fields_visibility_service, options[:service_template_request]) + add_to_visibility_arrays(@auto_placement_visibility_service, options[:auto_placement_enabled]) + add_to_visibility_arrays(@number_of_vms_visibility_service, options[:number_of_vms], options[:platform]) - add_to_visiblity_arrays( + add_to_visibility_arrays( @network_visibility_service, options[:sysprep_enabled], options[:supports_pxe], @@ -51,20 +51,20 @@ def determine_visibility(options) options[:addr_mode] ) - add_to_visiblity_arrays(@sysprep_auto_logon_visibility_service, options[:sysprep_auto_logon]) - add_to_visiblity_arrays(@retirement_visibility_service, options[:retirement]) + add_to_visibility_arrays(@sysprep_auto_logon_visibility_service, options[:sysprep_auto_logon]) + add_to_visibility_arrays(@retirement_visibility_service, options[:retirement]) - add_to_visiblity_arrays( + add_to_visibility_arrays( @customize_fields_visibility_service, options[:platform], options[:supports_customization_template], options[:customize_fields_list] ) - add_to_visiblity_arrays(@sysprep_custom_spec_visibility_service, options[:sysprep_custom_spec]) - add_to_visiblity_arrays(@request_type_visibility_service, options[:request_type]) - add_to_visiblity_arrays(@pxe_iso_visibility_service, options[:supports_iso], options[:supports_pxe]) - add_to_visiblity_arrays( + add_to_visibility_arrays(@sysprep_custom_spec_visibility_service, options[:sysprep_custom_spec]) + add_to_visibility_arrays(@request_type_visibility_service, options[:request_type]) + add_to_visibility_arrays(@pxe_iso_visibility_service, options[:supports_iso], options[:supports_pxe]) + add_to_visibility_arrays( @linked_clone_visibility_service, options[:provision_type], options[:linked_clone], @@ -84,7 +84,7 @@ def determine_visibility(options) private - def add_to_visiblity_arrays(visibility_service, *options) + def add_to_visibility_arrays(visibility_service, *options) visibility_hash = visibility_service.determine_visibility(*options) @field_names_to_hide += visibility_hash[:hide] @field_names_to_edit += visibility_hash[:edit] if visibility_hash[:edit]