Skip to content

Commit

Permalink
Fix incorrect title while displaying Datastore details page
Browse files Browse the repository at this point in the history
  • Loading branch information
hstastna committed Aug 27, 2018
1 parent 1e0caf8 commit a316d17
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/storage_controller.rb
Expand Up @@ -328,11 +328,16 @@ def features

def get_node_info(node, _show_list = true)
node = valid_active_node(node)

# Reset session to same values as first time in
session[:adv_search]['Storage'] = session[:edit] = @edit = nil if @record

case x_active_tree
when :storage_tree then storage_get_node_info(node)
when :storage_pod_tree then storage_pod_get_node_info(node)
end
@right_cell_text += _(" (Names with \"%{search_text}\")") % {:search_text => @search_text} if @search_text.present?

@right_cell_text += _(" (Names with \"%{search_text}\")") % {:search_text => @search_text} if @search_text.present? && @nodetype != 'ds'
@right_cell_text += @edit[:adv_search_applied][:text] if x_tree && x_tree[:type] == :storage && @edit && @edit[:adv_search_applied]

if @edit && @edit.fetch_path(:adv_search_applied, :qs_exp) # If qs is active, save it in history
Expand Down

0 comments on commit a316d17

Please sign in to comment.