Skip to content

Commit

Permalink
Explicitly set the @record in ops controller on diagnostics screens
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Apr 21, 2017
1 parent 2128ff1 commit cfc4931
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/ops_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def change_tab(new_tab_id = nil)
db_get_info
replace_right_cell(:nodetype => "root")
elsif x_active_tree == :diagnostics_tree
diagnostics_get_info
case @sb[:active_tab]
when "diagnostics_roles_servers"
@sb[:diag_tree_type] = "roles"
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/ops_controller/diagnostics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def diagnostics_get_info
@sb[:diag_selected_id] = nil
diagnostics_set_form_vars
when "svr"
@selected_server = MiqServer.find(from_cid(x_node.downcase.split("-").last))
@record = @selected_server = MiqServer.find(from_cid(x_node.downcase.split("-").last))
@sb[:selected_server_id] = @selected_server.id
diagnostics_set_form_vars
end
Expand Down

0 comments on commit cfc4931

Please sign in to comment.