Skip to content

Commit

Permalink
Merge pull request #5974 from skateman/server-tree-prefix
Browse files Browse the repository at this point in the history
Build the selected node key from the session stored model in RBS 🌳🐞

(cherry picked from commit 55ab533)

https://bugzilla.redhat.com/show_bug.cgi?id=1734393
  • Loading branch information
h-kataria authored and simaishi committed Aug 9, 2019
1 parent 7ab2694 commit 6cf3d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder_roles_by_server.rb
Expand Up @@ -8,7 +8,7 @@ def x_get_tree_roots(_count_only, _options)
end

def override(node, _object, _pid, _options)
if @sb[:diag_selected_id] && node[:key] == "svr-#{@sb[:diag_selected_id]}"
if @sb[:diag_selected_id] && node[:key] == "#{self.class.get_prefix_for_model(@sb[:diag_selected_model]) || 'svr'}-#{@sb[:diag_selected_id]}"
node[:highlighted] = true
end
end
Expand Down

0 comments on commit 6cf3d93

Please sign in to comment.