Skip to content

Commit

Permalink
Fix wrong breadcrumb link when click on Service Catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Aug 10, 2017
1 parent 1ffda04 commit b8a80ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def process_show_list(options = {})
bc_name = breadcrumb_name(model)
bc_name += " - " + session["#{self.class.session_key_prefix}_type".to_sym].titleize if session["#{self.class.session_key_prefix}_type".to_sym]
bc_name += " (filtered)" if @filters && (!@filters[:tags].blank? || !@filters[:cats].blank?)
action = %w(service vm_cloud vm_infra vm_or_template storage).include?(self.class.table_name) ? "explorer" : "show_list"
action = %w(service vm_cloud vm_infra vm_or_template storage service_template).include?(self.class.table_name) ? "explorer" : "show_list"
@breadcrumbs.clear
drop_breadcrumb(:name => bc_name, :url => "/#{controller_name}/#{action}")
end
Expand Down

0 comments on commit b8a80ce

Please sign in to comment.