Project

General

Profile

« Previous | Next » 

Revision 95da083d

Added by avi tal over 8 years ago

fixes #11220 - column ambiguity for non-admin host creation

(cherry picked from commit 4ca9215584bf2b81a3291b728d0c436a9a773f41)

View differences:

app/views/hosts/_form.html.erb
:'data-url' => (@host.new_record? || @host.type_changed?) ? process_hostgroup_hosts_path : hostgroup_or_environment_selected_hosts_path,
:help_inline => :indicator } %>
<%= select_f f, :compute_resource_id, ComputeResource.with_taxonomy_scope_override(@location,@organization).authorized(:view_compute_resources).order(:name), :id, :to_label,
<%= select_f f, :compute_resource_id, ComputeResource.with_taxonomy_scope_override(@location,@organization).authorized(:view_compute_resources).order('compute_resources.name'), :id, :to_label,
{ :include_blank => _('Bare Metal') },
{:label => _('Deploy on'), :disabled => !@host.new_record?, :'data-url' => compute_resource_selected_hosts_path,
:onchange => 'computeResourceSelected(this);',

Also available in: Unified diff