Skip to content

Commit

Permalink
Refs #22285 - Correctly calculate object type in host form
Browse files Browse the repository at this point in the history
Otherwise, discovered hosts add a field named
`discovered_host[puppetclass_ids][]` that fails on smart params which
expects the whole form to be submitted under the `host` hash.
  • Loading branch information
tbrisker committed Feb 1, 2018
1 parent 14e6b91 commit d7d633d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/puppetclasses/_class_selection.html.erb
Expand Up @@ -9,7 +9,7 @@
<div class="col-md-4 classes">
<h3><%= _('Included Classes') %></h3>

<%= hidden_field_tag "#{type}[puppetclass_ids][]" %>
<%= hidden_field_tag "#{obj_type(obj)}[puppetclass_ids][]" %>

<ul id="selected_classes">
<% if authorized_for(:controller => :host_editing, :action => :edit_classes) %>
Expand Down

0 comments on commit d7d633d

Please sign in to comment.