From 6575cafac9527d1f01750a4f7b52a6703ca6935f Mon Sep 17 00:00:00 2001 From: Harpreet Kataria Date: Mon, 1 Feb 2021 19:08:58 -0500 Subject: [PATCH] Fixed to not show "Back" button on summary screen and fixed breadcrumb. - Back button is to go back to summary screen, is displayed on sub-screens that are linked from summary screen. UI PR https://github.com/ManageIQ/manageiq-ui-classic/pull/7401 for https://github.com/ManageIQ/manageiq-ui-classic/issues/6819 --- app/controllers/miq_event_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/miq_event_controller.rb b/app/controllers/miq_event_controller.rb index 33fb9f5d4f1e..b856efabeca3 100644 --- a/app/controllers/miq_event_controller.rb +++ b/app/controllers/miq_event_controller.rb @@ -30,6 +30,8 @@ def show_list end def show + @display = params[:display] || "main" unless pagination_or_gtl_request? + @lastaction = "show" @record = MiqEventDefinition.find_by(:id => params[:id]) end @@ -53,7 +55,7 @@ def breadcrumbs_options { :breadcrumbs => [ {:title => _("Control")}, - {:title => _('Events')}, + {:title => _('Events'), :url => controller_url}, ].compact, :record_title => :description, }