Skip to content

Commit

Permalink
Merge pull request #6372 from skateman/open-parent-nodes-id
Browse files Browse the repository at this point in the history
Fix node ID generation for MiqAeClassController#open_parent_nodes
  • Loading branch information
himdel committed Nov 4, 2019
2 parents acaadac + 1d26ae9 commit 966a6c6
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 @@ -229,7 +229,7 @@ def open_parent_nodes(record)
if i == nodes.length - 1
selected_node = x_node.split("-")
parents.push(record.ae_class) if %w[aei aem].include?(selected_node[0])
self.x_node = "#{selected_node[0]}-#{record.id}"
self.x_node = TreeBuilder.build_node_id(record)
parents.push(record)
else
ns = MiqAeNamespace.lookup_by_fqname(nodes[0..i].join("/"))
Expand Down

0 comments on commit 966a6c6

Please sign in to comment.