Skip to content

Commit

Permalink
Changed find_by back to find_by_fqname
Browse files Browse the repository at this point in the history
Issue was introduced in ManageIQ#2004, commit c281edf find_by_fqname was changed to use rails find_by but in this case fqname is not an actual column, find_by_fqname is an actual method in MiqAeNamespace class https://github.com/ManageIQ/manageiq/blob/cb5e0de1766fa363ecfd19715316e17053925d1e/app/models/miq_ae_namespace.rb#L20

https://bugzilla.redhat.com/show_bug.cgi?id=1510463
  • Loading branch information
h-kataria committed Nov 16, 2017
1 parent 84f889a commit 8bbda59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/miq_ae_class_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def open_parent_nodes(record)
self.x_node = "#{selected_node[0]}-#{to_cid(record.id)}"
parents.push(record)
else
ns = MiqAeNamespace.find_by(:fqname => nodes[0..i].join("/"))
ns = MiqAeNamespace.find_by_fqname(nodes[0..i].join("/"))
parents.push(ns) if ns
end
end
Expand Down

0 comments on commit 8bbda59

Please sign in to comment.